Automattic\WooCommerce\Admin\Features

TransientNotices::get()public staticWC 1.0

Get a notice by ID.

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

No Hooks.

Return

Array|null.

Usage

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

Code of TransientNotices::get() WC 6.7.0

public static function get( $notice_id ) {
	$queue = self::get_queue();

	if ( isset( $queue[ $notice_id ] ) ) {
		return $queue[ $notice_id ];
	}

	return null;
}