Automattic\WooCommerce\Admin\Features
TransientNotices::get
Get a notice by ID.
Method of the class: TransientNotices{}
No Hooks.
Returns
Array|null.
Usage
$result = TransientNotices::get( $notice_id );
- $notice_id(array) (required)
- Notice of ID to get.
TransientNotices::get() TransientNotices::get code WC 10.6.2
public static function get( $notice_id ) {
$queue = self::get_queue();
if ( isset( $queue[ $notice_id ] ) ) {
return $queue[ $notice_id ];
}
return null;
}