Automattic\WooCommerce\Admin\Features

TransientNotices::remove()public staticWC 1.0

Remove a notice by ID.

{} It's a method of the class: TransientNotices{}

No Hooks.

Return

null. Nothing.

Usage

$result = TransientNotices::remove( $notice_id );
$notice_id(array) (required)
Notice of ID to remove.

Code of TransientNotices::remove() WC 6.6.1

public static function remove( $notice_id ) {
	$queue = self::get_queue();
	unset( $queue[ $notice_id ] );
	update_option( self::QUEUE_OPTION, $queue );
}