WC_Admin_Notices::set_notices()private staticWC 1.0

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() code WC 8.9.0

private static function set_notices( array $notices ) {
	if ( self::$is_multisite ) {
		self::$notices[ get_current_blog_id() ] = $notices;
	} else {
		self::$notices = $notices;
	}
}