woocommerce_show_admin_notice хук-фильтр . WC 1.0
Использование
add_filter( 'woocommerce_show_admin_notice', 'filter_function_name_9779', 10, 2 ); function filter_function_name_9779( $true, $notice ){ // filter... return $true; }
- $true
- -
- $notice
- -
Где вызывается хук
woocommerce_show_admin_notice
woocommerce/includes/admin/class-wc-admin-notices.php 198
if ( ! empty( self::$core_notices[ $notice ] ) && apply_filters( 'woocommerce_show_admin_notice', true, $notice ) ) {
Где используется хук в ядре WooCommerce
woocommerce/includes/admin/class-wc-admin-notices.php 224
add_filter( 'woocommerce_show_admin_notice', array( $this, 'remove_install_notice' ), 10, 2 );