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.8.1

apply_filters('woocommerce_show_admin_notice') is found 1 times:

  • /includes/admin/class-wc-admin-notices.php line 345
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
        // 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: