Automattic\WooCommerce\Internal\Admin
Loader::remove_notices()
Removes notices that should not be displayed on WC Admin pages.
Method of the class: Loader{}
No Hooks.
Return
null
. Nothing (null).
Usage
$result = Loader::remove_notices();
Loader::remove_notices() Loader::remove notices code WC 9.6.0
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' ); } }