Automattic\WooCommerce\Admin\Features
TransientNotices::remove()
Remove a notice by ID.
Method of the class: TransientNotices{}
No Hooks.
Return
null
. Nothing (null).
Usage
$result = TransientNotices::remove( $notice_id );
- $notice_id(array) (required)
- Notice of ID to remove.
TransientNotices::remove() TransientNotices::remove code WC 8.7.0
public static function remove( $notice_id ) { $queue = self::get_queue(); unset( $queue[ $notice_id ] ); update_option( self::QUEUE_OPTION, $queue ); }