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

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

add_filter( 'woocommerce_order_item_quantity_html', 'wp_kama_woocommerce_order_item_quantity_html_filter', 10, 2 );

/**
 * Function for `woocommerce_order_item_quantity_html` filter-hook.
 * 
 * @param  $html 
 * @param  $item 
 *
 * @return 
 */
function wp_kama_woocommerce_order_item_quantity_html_filter( $html, $item ){

	// filter...
	return $html;
}
$html
-
$item
-

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

В файле: /templates/order/order-details-item.php
woocommerce_order_item_quantity_html
woocommerce/templates/order/order-details-item.php 44
echo apply_filters( 'woocommerce_order_item_quantity_html', ' <strong class="product-quantity">' . sprintf( '&times;&nbsp;%s', $qty_display ) . '</strong>', $item ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
woocommerce/templates/checkout/form-pay.php 52
<td class="product-quantity"><?php echo apply_filters( 'woocommerce_order_item_quantity_html', ' <strong class="product-quantity">' . sprintf( '&times;&nbsp;%s', esc_html( $item->get_quantity() ) ) . '</strong>', $item ); ?></td><?php // @codingStandardsIgnoreLine ?>

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

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