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