public function clear_notification( $queue_id, Notification $notification ) {

		$notifications = $this->get_notifications( $queue_id );

		$notification = array_search( $notification, $notifications );

		if ( false === $notification ) {
			return false;
		}

		unset( $notifications[ $notification ] );

		return $this->store_notifications( $queue_id, $notifications );
	}
public function clear_notification( $queue_id, Notification $notification ) {

		$notifications = $this->get_notifications( $queue_id );

		$notification = array_search( $notification, $notifications );

		if ( false === $notification ) {
			return false;
		}

		unset( $notifications[ $notification ] );

		return $this->store_notifications( $queue_id, $notifications );
	}
public function clear_notification ( $ queue_id , Notification $ notification ) { $ notifications = $ this -> get_notifications ( $ queue_id ) ; $ notification = array_search ( $ notification , $ notifications ) ; if ( false === $ notification ) { return false ; } unset ( $ notifications [ $ notification ] ) ; return $ this -> store_notifications ( $ queue_id , $ notifications ) ; }
Clear a single notification from storage.

@since 1.0

@param string       $queue_id
@param Notification $notification

@return bool
Clear a single notification from storage .