woocommerce_show_admin_notice

woocommerce_show_admin_notice

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_show_admin_notice') is found 1 times:

  • /includes/admin/class-wc-admin-notices.php line 346
    		// 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' ) );
    			}
    		}
    	}
    

See this hook used in plugins: