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

translators: %s: Item name.

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

add_filter( 'woocommerce_cart_item_removed_title', 'wp_kama_woocommerce_cart_item_removed_title_filter', 10, 2 );

/**
 * Function for `woocommerce_cart_item_removed_title` filter-hook.
 * 
 * @param  $sprintf() 
 * @param  $cart_item 
 *
 * @return 
 */
function wp_kama_woocommerce_cart_item_removed_title_filter( $sprintf(), $cart_item ){

	// filter...
	return $sprintf();
}
$sprintf()
-
$cart_item
-

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

WC_Form_Handler::update_cart_action()
woocommerce_cart_item_removed_title
woocommerce/includes/class-wc-form-handler.php 641
$item_removed_title = apply_filters( 'woocommerce_cart_item_removed_title', $product ? sprintf( _x( '“%s”', 'Item name in quotes', 'woocommerce' ), $product->get_name() ) : __( 'Item', 'woocommerce' ), $cart_item );

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

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