Automattic\WooCommerce\Internal\Admin
Loader::remove_notices
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 10.8.1
public static function remove_notices() {
if ( ! PageController::is_admin_or_embed_page() ) {
return;
}
// Hello Dolly.
if ( function_exists( 'hello_dolly' ) ) {
remove_action( 'admin_notices', 'hello_dolly' );
}
}