WC_Admin_Notices::hide_notice
Hide a single notice.
Method of the class: WC_Admin_Notices{}
Hooks from the method
Returns
null. Nothing (null).
Usage
$result = WC_Admin_Notices::hide_notice( $name );
- $name(string) (required)
- Notice name.
WC_Admin_Notices::hide_notice() WC Admin Notices::hide notice code WC 10.6.2
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' );
}