woocommerce_notice_types
Использование
add_filter( 'woocommerce_notice_types', 'wp_kama_woocommerce_notice_types_filter' ); /** * Function for `woocommerce_notice_types` filter-hook. * * @param $array * * @return */ function wp_kama_woocommerce_notice_types_filter( $array ){ // filter... return $array; }
- $array
- -
Где вызывается хук
woocommerce_notice_types
woocommerce/includes/wc-notice-functions.php 150
$notice_types = apply_filters( 'woocommerce_notice_types', array( 'error', 'success', 'notice' ) );