wc_get_price_html_from_text

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

Description

(string) wc_get_price_html_from_text(); 

Returns (string)


Usage

  1. if ( !function_exists( 'wc_get_price_html_from_text' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-template-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wc_get_price_html_from_text(); 
  7.  

Defined (1)

The function is defined in the following location(s).

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