WC_Admin_Notices::set_notices()
Set the locally cached notices array for the current site.
Method of the class: WC_Admin_Notices{}
No Hooks.
Return
null
. Nothing (null).
Usage
$result = WC_Admin_Notices::set_notices( $notices );
- $notices(array) (required)
- New value for the locally cached notices array.
WC_Admin_Notices::set_notices() WC Admin Notices::set notices code WC 9.6.0
private static function set_notices( array $notices ) { if ( self::$is_multisite ) { self::$notices[ get_current_blog_id() ] = $notices; } else { self::$notices = $notices; } }