woocommerce_add_(notice_type) хук-фильтр . WC 1.0
Использование
add_filter( 'woocommerce_add_(notice_type)', 'filter_function_name_7734' ); function filter_function_name_7734( $message ){ // filter... return $message; }
- $message
- -
Где вызывается хук
woocommerce_add_(notice_type)
woocommerce_add_(notice_type)
woocommerce/includes/wc-notice-functions.php 87
$message = apply_filters( 'woocommerce_add_' . $notice_type, $message );
woocommerce/includes/wc-notice-functions.php 189
$message = apply_filters( 'woocommerce_add_' . $notice_type, $message );
Где используется хук в ядре WooCommerce
woocommerce/includes/wc-notice-functions.php 55
add_action( 'woocommerce_add_to_cart', array( $this, 'persistent_cart_update' ) );
woocommerce/includes/wc-notice-functions.php 61
add_action( 'woocommerce_add_to_cart', array( $this, 'maybe_set_cart_cookies' ) );
woocommerce/includes/wc-notice-functions.php 106
add_action( 'woocommerce_add_to_cart', array( $this, 'calculate_totals' ), 20, 0 );
woocommerce/includes/wc-notice-functions.php 855
remove_action( 'woocommerce_add_to_cart', array( WC()->cart, 'calculate_totals' ), 20, 0 );
woocommerce/includes/wc-notice-functions.php 862
add_action( 'woocommerce_add_to_cart', array( WC()->cart, 'calculate_totals' ), 20, 0 );
woocommerce/includes/wc-notice-functions.php 540
add_filter( 'woocommerce_add_to_cart_form_action', '__return_empty_string' );
woocommerce/includes/wc-notice-functions.php 614
remove_filter( 'woocommerce_add_to_cart_form_action', '__return_empty_string' );
woocommerce/includes/wc-notice-functions.php 29
add_filter( 'woocommerce_add_to_cart_validation', 'wc_protected_product_add_to_cart', 10, 2 );