woocommerce_order_item_quantity_html хук-фильтр . WC 1.0
Использование
add_filter( 'woocommerce_order_item_quantity_html', 'filter_function_name_2826', 10, 2 ); function filter_function_name_2826( $html, $item ){ // filter... return $html; }
- $html
- -
- $item
- -
Где вызывается хук
В файле: /templates/checkout/form-pay.php
woocommerce_order_item_quantity_html
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( '× %s', esc_html( $item->get_quantity() ) ) . '</strong>', $item ); ?></td><?php // @codingStandardsIgnoreLine ?>
woocommerce/templates/order/order-details-item.php 44
echo apply_filters( 'woocommerce_order_item_quantity_html', ' <strong class="product-quantity">' . sprintf( '× %s', $qty_display ) . '</strong>', $item ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped