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', '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 Введена.

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

wc_get_price_html_from_text()
woocommerce_get_price_html_from_text
woocommerce/includes/wc-template-functions.php 3715
return apply_filters( 'woocommerce_get_price_html_from_text', '<span class="from">' . _x( 'From:', 'min_price', 'woocommerce' ) . ' </span>' );

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

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