woocommerce_get_price_html_from_text хук-фильтр . WC 3.0.0
Returns a 'from' prefix if you want to show where prices start at.
Использование
add_filter( 'woocommerce_get_price_html_from_text', 'filter_function_name_6843' ); function filter_function_name_6843( $html ){ // filter... return $html; }
- $html
- -
Список изменений
С версии 3.0.0 | Введена. |
Где вызывается хук
woocommerce_get_price_html_from_text
woocommerce/includes/wc-template-functions.php 3533
return apply_filters( 'woocommerce_get_price_html_from_text', '<span class="from">' . _x( 'From:', 'min_price', 'woocommerce' ) . ' </span>' );