Improved wc_add_to_cart_message filter (#19817)
* Improved wc_add_to_cart_message filter Added product quantity parameter to filter, as it is relevant for construction of message and passed through function call. * Removed param from deprecated function Param has been removed from deprecated function as suggested
This commit is contained in:
parent
e68e8e8273
commit
19efe63fe8
|
@ -128,7 +128,7 @@ function wc_add_to_cart_message( $products, $show_qty = false, $return = false )
|
|||
$message = apply_filters( 'wc_add_to_cart_message', $message, $product_id );
|
||||
}
|
||||
|
||||
$message = apply_filters( 'wc_add_to_cart_message_html', $message, $products );
|
||||
$message = apply_filters( 'wc_add_to_cart_message_html', $message, $products, $show_qty );
|
||||
|
||||
if ( $return ) {
|
||||
return $message;
|
||||
|
|
Loading…
Reference in New Issue