woocommerce_cart_item_removed_because_modified_message хук-фильтрWC 1.0

translators: %1$s: product name. %2$s product permalink

Использование

add_filter( 'woocommerce_cart_item_removed_because_modified_message', 'wp_kama_woocommerce_cart_item_removed_because_modified_message_filter', 10, 2 );

/**
 * Function for `woocommerce_cart_item_removed_because_modified_message` filter-hook.
 * 
 * @param  $message 
 * @param  $product 
 *
 * @return 
 */
function wp_kama_woocommerce_cart_item_removed_because_modified_message_filter( $message, $product ){

	// filter...
	return $message;
}
$message
-
$product
-

Где вызывается хук

WC_Cart_Session::get_cart_from_session()
woocommerce_cart_item_removed_because_modified_message
woocommerce/includes/class-wc-cart-session.php 163
$message = apply_filters( 'woocommerce_cart_item_removed_because_modified_message', $message, $product );

Где используется хук в WooCommerce

Использование не найдено.