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:
urosmil 2018-05-30 15:53:15 +02:00 committed by Mike Jolley
parent e68e8e8273
commit 19efe63fe8
1 changed files with 1 additions and 1 deletions

View File

@ -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;