woocommerce_quantity_input_placeholder хук-фильтр . WC 1.0
Использование
add_filter( 'woocommerce_quantity_input_placeholder', 'filter_function_name_3027', 10, 2 ); function filter_function_name_3027( $string, $product ){ // filter... return $string; }
- $string
- -
- $product
- -
Где вызывается хук
woocommerce_quantity_input_placeholder
woocommerce/includes/wc-template-functions.php 1724
'placeholder' => apply_filters( 'woocommerce_quantity_input_placeholder', '', $product ),