Automattic\WooCommerce\Internal\Admin

Loader::remove_notices()public staticWC 1.0

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() code WC 8.7.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' );
	}
}