WC_Admin_Notices::hide_notice()private staticWC 1.0

Hide a single notice.

{} It's a method of the class: WC_Admin_Notices{}

Hooks from the method

Return

null. Nothing.

Usage

$result = WC_Admin_Notices::hide_notice( $name );
$name(string) (required)
Notice name.

Code of WC_Admin_Notices::hide_notice() WC 6.7.0

private static function hide_notice( $name ) {
	self::remove_notice( $name );

	update_user_meta( get_current_user_id(), 'dismissed_' . $name . '_notice', true );

	do_action( 'woocommerce_hide_' . $name . '_notice' );
}