Automattic\WooCommerce\Admin
Loader::remove_notices() public WC 1.0
Removes notices that should not be displayed on WC Admin pages.
{} Это метод класса: Loader{}
Хуков нет.
Возвращает
null
. Null. Ничего.
Использование
$result = Loader::remove_notices();
Код Loader::remove_notices() Loader::remove notices WC 5.1.0
public static function remove_notices() {
if ( ! self::is_admin_or_embed_page() ) {
return;
}
// Hello Dolly.
if ( function_exists( 'hello_dolly' ) ) {
remove_action( 'admin_notices', 'hello_dolly' );
}
}