woocommerce_add_to_cart_notice_type
Usage
add_filter( 'woocommerce_add_to_cart_notice_type', 'wp_kama_woocommerce_add_to_cart_notice_type_filter' ); /** * Function for `woocommerce_add_to_cart_notice_type` filter-hook. * * @param $string * * @return */ function wp_kama_woocommerce_add_to_cart_notice_type_filter( $string ){ // filter... return $string; }
- $string
- -
Where the hook is called
woocommerce_add_to_cart_notice_type
woocommerce/includes/wc-cart-functions.php 143
wc_add_notice( $message, apply_filters( 'woocommerce_add_to_cart_notice_type', 'success' ) );