WC_Admin_Notices::set_notices()
Set the locally cached notices array for the current site.
Метод класса: WC_Admin_Notices{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$result = WC_Admin_Notices::set_notices( $notices );
- $notices(массив) (обязательный)
- New value for the locally cached notices array.
Код WC_Admin_Notices::set_notices() WC Admin Notices::set notices WC 9.8.5
private static function set_notices( array $notices ) { if ( self::$is_multisite ) { self::$notices[ get_current_blog_id() ] = $notices; } else { self::$notices = $notices; } }