woocommerce_gzd_template_single_price_unit

Single Product price per unit.

Description

woocommerce_gzd_template_single_price_unit(); 

Usage

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

Defined (1)

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

/includes/wc-gzd-template-functions.php  
  1. function woocommerce_gzd_template_single_price_unit() { 
  2. global $product; 
  3. if ( in_array( $product->product_type, apply_filters( 'woocommerce_gzd_product_types_supporting_unit_prices', array( 'simple', 'external', 'variable' ) ) ) ) 
  4. wc_get_template( 'single-product/price-unit.php' );