woocommerce_quantity_input_inputmode
Использование
add_filter( 'woocommerce_quantity_input_inputmode', 'wp_kama_woocommerce_quantity_input_inputmode_filter' ); /** * Function for `woocommerce_quantity_input_inputmode` filter-hook. * * @param $numeric * * @return */ function wp_kama_woocommerce_quantity_input_inputmode_filter( $numeric ){ // filter... return $numeric; }
- $numeric
- -
Где вызывается хук
woocommerce_quantity_input_inputmode
woocommerce/includes/wc-template-functions.php 1830
'inputmode' => apply_filters( 'woocommerce_quantity_input_inputmode', has_filter( 'woocommerce_stock_amount', 'intval' ) ? 'numeric' : '' ),