woocommerce_cart_updated_notice_type
Usage
add_filter( 'woocommerce_cart_updated_notice_type', 'wp_kama_woocommerce_cart_updated_notice_type_filter' );
/**
* Function for `woocommerce_cart_updated_notice_type` filter-hook.
*
* @param $string
*
* @return
*/
function wp_kama_woocommerce_cart_updated_notice_type_filter( $string ){
// filter...
return $string;
}
- $string
- -
Where the hook is called
woocommerce_cart_updated_notice_type
woocommerce/includes/class-wc-form-handler.php 770
wc_add_notice( __( 'Cart updated.', 'woocommerce' ), apply_filters( 'woocommerce_cart_updated_notice_type', 'success' ) );