woocommerce_gzd_get_variation_unit_regular_price

The WooCommerce Germanized woocommerce gzd get variation unit regular price hook.

Description

apply_filters( 'woocommerce_gzd_get_variation_unit_regular_price', (unknown) $price, (unknown) $instance, (unknown) $min_or_max, (unknown) $display ); 

Parameters (4)

0. $price (unknown)
The price.
1. $instance (unknown)
The instance.
2. $min_or_max (unknown)
The min or max.
3. $display (unknown)
The display.

Usage

To run the hook, copy the example below.
  1. $price = apply_filters( 'woocommerce_gzd_get_variation_unit_regular_price', $price, $instance, $min_or_max, $display ); 
  2.  
  3. if ( !empty( $price ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the woocommerce_gzd_get_variation_unit_regular_price callback 
  2. function filter_woocommerce_gzd_get_variation_unit_regular_price( $price, $instance, $min_or_max, $display ) { 
  3. // make filter magic happen here... 
  4. return $price
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'woocommerce_gzd_get_variation_unit_regular_price', 'filter_woocommerce_gzd_get_variation_unit_regular_price', 10, 4 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'woocommerce_gzd_get_variation_unit_regular_price', 'filter_woocommerce_gzd_get_variation_unit_regular_price', 10, 4 ); 

Defined (1)

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

/includes/class-wc-gzd-product-variable.php  
  1. return apply_filters( 'woocommerce_gzd_get_variation_unit_regular_price', $price, $this, $min_or_max, $display );