woocommerce_show_admin_notice filter-hook . WC 1.0
Usage
add_filter( 'woocommerce_show_admin_notice', 'filter_function_name_4022', 10, 2 ); function filter_function_name_4022( $true, $notice ){ // filter... return $true; }
- $true
- -
- $notice
- -
Where the hook is called
woocommerce_show_admin_notice
woocommerce/includes/admin/class-wc-admin-notices.php 243
if ( ! empty( self::$core_notices[ $notice ] ) && apply_filters( 'woocommerce_show_admin_notice', true, $notice ) ) {
Where in WP core the hook is used WooCommerce
woocommerce/packages/woocommerce-admin/src/Features/Onboarding.php 221
add_filter( 'woocommerce_show_admin_notice', array( $this, 'remove_install_notice' ), 10, 2 );