public function dequeue(string $key)
    {
        $notices = $this->get();

        if (!isset($notices[$key])) {
            return; // Nothing to do.
        } // No update necessary in this case.

        unset($notices[$key]); // Dequeue.
        $this->update($notices);
    }
public function dequeue(string $key)
    {
        $notices = $this->get();

        if (!isset($notices[$key])) {
            return; // Nothing to do.
        } // No update necessary in this case.

        unset($notices[$key]); // Dequeue.
        $this->update($notices);
    }
public function dequeue ( string $ key ) { $ notices = $ this -> get ( ) ; if ( ! isset ( $ notices [ $ key ] ) ) { return ; // Nothing to do. } // No update necessary in this case. unset ( $ notices [ $ key ] ) ; // Dequeue. $ this -> update ( $ notices ) ; }
Dequeue a notice.

@since 161014 WP notices.

@param string $key A key to dequeue.
Dequeue a notice .