woocommerce_add_to_cart_notice_type хук-фильтр . WC 1.0
Использование
add_filter( 'woocommerce_add_to_cart_notice_type', 'filter_function_name_3258' ); function filter_function_name_3258( $string ){ // filter... return $string; }
- $string
- -
Где вызывается хук
woocommerce_add_to_cart_notice_type
woocommerce/includes/wc-cart-functions.php 138
wc_add_notice( $message, apply_filters( 'woocommerce_add_to_cart_notice_type', 'success' ) );