woocommerce_get_price_html_from_text filter-hookWC 3.0.0

Returns a 'from' prefix if you want to show where prices start at.

Usage

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
-

Changelog

Since 3.0.0 Introduced.

Where the hook is called

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

Where the hook is used in WooCommerce

Usage not found.