woocommerce_show_admin_notice, true, $notice

woocommerce_show_admin_notice, true, $notice

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

apply_filters('woocommerce_show_admin_notice, true, $notice') is found 1 times:

  • /includes/admin/class-wc-admin-notices.php line 327
    		// Add RTL support.
    		wp_style_add_data( 'woocommerce-activation', 'rtl', 'replace' );
    
    		foreach ( $notices as $notice ) {
    			if ( ! empty( self::$core_notices[ $notice ] ) && apply_filters( 'woocommerce_show_admin_notice', true, $notice ) ) {
    				add_action( 'admin_notices', array( __CLASS__, self::$core_notices[ $notice ] ) );
    			} else {
    				add_action( 'admin_notices', array( __CLASS__, 'output_custom_notices' ) );
    			}
    		}
    	}