WC_GZD_Price_Labels

The Price Labels Class stores labels to be added as price suffixes.

Defined (1)

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

/includes/class-wc-gzd-price-labels.php  
  1. class WC_GZD_Price_Labels extends WC_GZD_Taxonomy { 
  2.  
  3. /** 
  4. * Adds the units from i18n template 
  5. */ 
  6. public function __construct() { 
  7. parent::__construct( 'product_price_label' ); 
  8.  
  9. public function get_label( $key, $by = 'slug' ) { 
  10. return parent::get_term( $key, $by ); 
  11.  
  12. /** 
  13. * Returns mixed units array 
  14. * @return mixed units as array 
  15. */ 
  16. public function get_labels() { 
  17. return $this->get_terms();