Automattic\WooCommerce\Admin\Features
TransientNotices::get()
Get a notice by ID.
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.
TransientNotices::get() TransientNotices::get code WC 8.7.0
public static function get( $notice_id ) { $queue = self::get_queue(); if ( isset( $queue[ $notice_id ] ) ) { return $queue[ $notice_id ]; } return null; }