woocommerce_quantity_input_type хук-фильтрWC 7.4.0

Controls the quantity input's type attribute.

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

add_filter( 'woocommerce_quantity_input_type', 'wp_kama_woocommerce_quantity_input_type_filter' );

/**
 * Function for `woocommerce_quantity_input_type` filter-hook.
 * 
 * @param string $type A valid input type attribute value, usually 'number' or 'hidden'.
 *
 * @return string
 */
function wp_kama_woocommerce_quantity_input_type_filter( $type ){

	// filter...
	return $type;
}
$type(строка)
A valid input type attribute value, usually 'number' or 'hidden'.

Список изменений

С версии 7.4.0 Введена.

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

woocommerce_quantity_input()
woocommerce_quantity_input_type
woocommerce/includes/wc-template-functions.php 1850
$args['type'] = apply_filters( 'woocommerce_quantity_input_type', $type );

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

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