woocommerce_before_quantity_input_field
Hook to output something before the quantity input field.
Использование
add_action( 'woocommerce_before_quantity_input_field', 'wp_kama_woocommerce_before_quantity_input_field_action' ); /** * Function for `woocommerce_before_quantity_input_field` action-hook. * * @return void */ function wp_kama_woocommerce_before_quantity_input_field_action(){ // action... }
Список изменений
С версии 7.2.0 | Введена. |
Где вызывается хук
В файле: /templates/global/quantity-input.php
woocommerce_before_quantity_input_field
woocommerce/templates/global/quantity-input.php 34
do_action( 'woocommerce_before_quantity_input_field' );