woocommerce_gzd_customer_applies_for_photovoltaic_system_vat_exemption Filter
$param_1string$param_2string
add_filter( "woocommerce_gzd_customer_applies_for_photovoltaic_system_vat_exemption", function( $param_1, $param_2 ) {
// Do something
return $param_1;
}, 10, 2 );
woocommerce_gzd_shipping_country_supports_photovoltaic_system_vat_exempt Filter
$paramstring
add_filter( "woocommerce_gzd_shipping_country_supports_photovoltaic_system_vat_exempt", function( $param ) {
// Do something
return $param;
}, 10, 1 );
woocommerce_gzd_get_variation_unit_regular_price Filter
Filter to adjust the min or max variation regular unit price.
$pricestring The price.$product\WC_GZD_Product_Variable The product object.$min_or_maxstring Either `min` or `max`.$displaybool Either for display purposes or not.
add_filter( "woocommerce_gzd_get_variation_unit_regular_price", function( $price, $product, $min_or_max, $display ) {
// Do something
return $price;
}, 10, 4 );
woocommerce_gzd_get_variation_unit_sale_price Filter
Filter to adjust the min or max variation sale unit price.
$pricestring The price.$product\WC_GZD_Product_Variable The product object.$min_or_maxstring Either `min` or `max`.$displaybool Either for display purposes or not.
add_filter( "woocommerce_gzd_get_variation_unit_sale_price", function( $price, $product, $min_or_max, $display ) {
// Do something
return $price;
}, 10, 4 );
woocommerce_gzd_get_variation_unit_price Filter
Filter to adjust the min or max variation unit price.
$pricestring The price.$product\WC_GZD_Product_Variable The product object.$min_or_maxstring Either `min` or `max`.$displaybool Either for display purposes or not.
add_filter( "woocommerce_gzd_get_variation_unit_price", function( $price, $product, $min_or_max, $display ) {
// Do something
return $price;
}, 10, 4 );
woocommerce_gzd_product_is_on_unit_sale Filter
Filter to decide whether a product is on unit sale or not.
$on_salebool Whether the product is on sale or not.$product\WC_GZD_Product The product object.
add_filter( "woocommerce_gzd_product_is_on_unit_sale", function( $on_sale, $product ) {
// Do something
return $on_sale;
}, 10, 2 );
woocommerce_germanized_get_price_html_from_to Filter
Filter to adjust the HTML price range for unit prices.
$pricestring The HTML price range.$fromstring The from price.$tostring The to price.$product\WC_GZD_Product The product object.
add_filter( "woocommerce_germanized_get_price_html_from_to", function( $price, $from, $to, $product ) {
// Do something
return $price;
}, 10, 4 );
woocommerce_gzd_before_get_unit_price_html Action
Before retrieving unit price HTML. Fires before the HTML output for the unit price is generated.
$this\WC_GZD_Product The product object.
add_action( "woocommerce_gzd_before_get_unit_price_html", function( $this ) {
// Do something
}, 10, 1 );
woocommerce_gzd_variable_unit_price_html Filter
Filter to adjust variable product unit price. In case of Woo version > 3.0.0 this filter can contain the formatted sale price too.
$pricestring The price.$product\WC_GZD_Product_Variable The product object.
add_filter( "woocommerce_gzd_variable_unit_price_html", function( $price, $product ) {
// Do something
return $price;
}, 10, 2 );
woocommerce_gzd_product_variable_show_unit_product_ranges Filter
$param_1string$param_2string
add_filter( "woocommerce_gzd_product_variable_show_unit_product_ranges", function( $param_1, $param_2 ) {
// Do something
return $param_1;
}, 10, 2 );
woocommerce_gzd_hide_product_units_text Filter
Filter that allows disabling product units output for a specific product.
$disablebool Whether to disable or not.$product\WC_GZD_Product The product object.
add_filter( "woocommerce_gzd_hide_product_units_text", function( $disable, $product ) {
// Do something
return $disable;
}, 10, 2 );
woocommerce_germanized_disabled_product_units_text Filter
Filter that allows adjusting the disabled product units output.
$noticestring The output.$product\WC_GZD_Product The product object.
add_filter( "woocommerce_germanized_disabled_product_units_text", function( $notice, $product ) {
// Do something
return $notice;
}, 10, 2 );
woocommerce_gzd_product_single_product_unit_format Filter
$param_1string$param_2string
add_filter( "woocommerce_gzd_product_single_product_unit_format", function( $param_1, $param_2 ) {
// Do something
return $param_1;
}, 10, 2 );
woocommerce_gzd_product_unit_range_format Filter
$param_1string$param_2string$param_3string
add_filter( "woocommerce_gzd_product_unit_range_format", function( $param_1, $param_2, $param_3 ) {
// Do something
return $param_1;
}, 10, 3 );
woocommerce_gzd_product_units_html Filter
Filter to adjust the product units HTML output.
$htmlstring The HTML output.$product\WC_GZD_Product The product object.
add_filter( "woocommerce_gzd_product_units_html", function( $html, $product ) {
// Do something
return $html;
}, 10, 2 );
woocommerce_gzd_before_get_variable_variation_unit_price Action
Before retrieving variation unit price. Fires before a unit price for a certain variation is retrieved. May be useful for recalculation purposes.
$\WC_GZD_Product the variation product object.
add_action( "woocommerce_gzd_before_get_variable_variation_unit_price", function( $ ) {
// Do something
}, 10, 1 );
woocommerce_gzd_variation_unit_prices_price Filter
Filters the variation unit price.
$pricestring The unit price.$product\WC_Product_Variation The product object.$parent\WC_GZD_Product_Variable The variable parent product object.
add_filter( "woocommerce_gzd_variation_unit_prices_price", function( $price, $product, $parent ) {
// Do something
return $price;
}, 10, 3 );
woocommerce_gzd_variation_unit_prices_regular_price Filter
Filters the variation regular unit price.
$pricestring The regular unit price.$product\WC_Product_Variation The product object.$parent\WC_GZD_Product_Variable The variable parent product object.
add_filter( "woocommerce_gzd_variation_unit_prices_regular_price", function( $price, $product, $parent ) {
// Do something
return $price;
}, 10, 3 );
woocommerce_gzd_variation_unit_prices_sale_price Filter
Filters the variation sale unit price.
$pricestring The sale unit price.$product\WC_Product_Variation The product object.$parent\WC_GZD_Product_Variable The variable parent product object.
add_filter( "woocommerce_gzd_variation_unit_prices_sale_price", function( $price, $product, $parent ) {
// Do something
return $price;
}, 10, 3 );
woocommerce_gzd_variation_unit_prices Filter
Filter to adjust the unit prices for a certain variation right before returning. Last change to adjust unit prices before handing them over for further processing.
$unit_pricesarray Array containing unit price data.$product\WC_GZD_Product_Variable The product object.$displaybool Whether output is for display purposes or not.
add_filter( "woocommerce_gzd_variation_unit_prices", function( $unit_prices, $product, $display ) {
// Do something
return $unit_prices;
}, 10, 3 );
woocommerce_gzd_get_variation_unit_prices_hash Filter
$param_1string$param_2string$param_3string
add_filter( "woocommerce_gzd_get_variation_unit_prices_hash", function( $param_1, $param_2, $param_3 ) {
// Do something
return $param_1;
}, 10, 3 );
woocommerce_gzd_get_allergen_object Filter
$param_1bool$param_2string
add_filter( "woocommerce_gzd_get_allergen_object", function( $param_1, $param_2 ) {
// Do something
return $param_1;
}, 10, 2 );
woocommerce_gzd_show_product_review_authenticity_status Filter
$param_1bool$param_2string
add_filter( "woocommerce_gzd_show_product_review_authenticity_status", function( $param_1, $param_2 ) {
// Do something
return $param_1;
}, 10, 2 );
woocommerce_gzd_show_product_rating_authenticity_status Filter
$param_1string$param_2string
add_filter( "woocommerce_gzd_show_product_rating_authenticity_status", function( $param_1, $param_2 ) {
// Do something
return $param_1;
}, 10, 2 );
woocommerce_gzd_product_{$block_name}_block_price_xpath Filter
$paramstring
woocommerce_gzd_product_{$block_name}_block_title_xpath Filter
$paramstring
woocommerce_gzd_product_{$block_name}_block_rating_xpath Filter
$paramstring
woocommerce_gzd_product_grid_block_price_xpath Filter
$paramstring
add_filter( "woocommerce_gzd_product_grid_block_price_xpath", function( $param ) {
// Do something
return $param;
}, 10, 1 );
woocommerce_gzd_product_grid_block_title_xpath Filter
$paramstring
add_filter( "woocommerce_gzd_product_grid_block_title_xpath", function( $param ) {
// Do something
return $param;
}, 10, 1 );
woocommerce_gzd_product_grid_block_rating_xpath Filter
$paramstring
add_filter( "woocommerce_gzd_product_grid_block_rating_xpath", function( $param ) {
// Do something
return $param;
}, 10, 1 );
woocommerce_gzd_product_types_supporting_unit_prices Filter
$paramarray
add_filter( "woocommerce_gzd_product_types_supporting_unit_prices", function( $param ) {
// Do something
return $param;
}, 10, 1 );
woocommerce_gzd_template_single_nutri_score Action
add_action( "woocommerce_gzd_template_single_nutri_score", function( ) {
// Do something
}, 10 );
woocommerce_gzd_template_loop_nutri_score Action
add_action( "woocommerce_gzd_template_loop_nutri_score", function( ) {
// Do something
}, 10 );
woocommerce_gzd_checkout_table_needs_thumbnail Filter
$param_1string$param_2string$param_3string
add_filter( "woocommerce_gzd_checkout_table_needs_thumbnail", function( $param_1, $param_2, $param_3 ) {
// Do something
return $param_1;
}, 10, 3 );
woocommerce_gzd_checkout_table_thumbnail_wrapper Filter
$parambool
add_filter( "woocommerce_gzd_checkout_table_thumbnail_wrapper", function( $param ) {
// Do something
return $param;
}, 10, 1 );
woocommerce_gzd_before_add_variation_options Action
$param_1string$param_2string$param_3string
add_action( "woocommerce_gzd_before_add_variation_options", function( $param_1, $param_2, $param_3 ) {
// Do something
}, 10, 3 );
woocommerce_gzd_product_ingredients_heading Filter
$paramstring
add_filter( "woocommerce_gzd_product_ingredients_heading", function( $param ) {
// Do something
return $param;
}, 10, 1 );
woocommerce_gzd_product_allergenic_heading Filter
$paramstring
add_filter( "woocommerce_gzd_product_allergenic_heading", function( $param ) {
// Do something
return $param;
}, 10, 1 );
woocommerce_gzd_product_nutrients_heading Filter
$paramstring
add_filter( "woocommerce_gzd_product_nutrients_heading", function( $param ) {
// Do something
return $param;
}, 10, 1 );
woocommerce_gzd_product_manufacturer_heading Filter
$paramstring
add_filter( "woocommerce_gzd_product_manufacturer_heading", function( $param ) {
// Do something
return $param;
}, 10, 1 );
woocommerce_gzd_product_safety_attachments_heading Filter
$paramstring
add_filter( "woocommerce_gzd_product_safety_attachments_heading", function( $param ) {
// Do something
return $param;
}, 10, 1 );
woocommerce_gzd_insert_order_submit_fallback Filter
$parambool
add_filter( "woocommerce_gzd_insert_order_submit_fallback", function( $param ) {
// Do something
return $param;
}, 10, 1 );
woocommerce_gzd_show_pay_now_button Filter
Filter to allow disabling the pay now button.
$showbool Whether to show or hide the button.$order_idint The order id.
add_filter( "woocommerce_gzd_show_pay_now_button", function( $show, $order_id ) {
// Do something
return $show;
}, 10, 2 );
woocommerce_gzd_forwarding_fee_checkout_text Filter
Filter to adjust the forwarding fee checkout notice.
$htmlstring The notice.
add_filter( "woocommerce_gzd_forwarding_fee_checkout_text", function( $html ) {
// Do something
return $html;
}, 10, 1 );
woocommerce_germanized_digital_delivery_time_text Filter
Filter to adjust delivery time text for digital products.
$htmlstring The notice.$product\WC_Product The product object.
add_filter( "woocommerce_germanized_digital_delivery_time_text", function( $html, $product ) {
// Do something
return $html;
}, 10, 2 );
woocommerce_gzd_show_mini_cart_totals_taxes Filter
$parambool
add_filter( "woocommerce_gzd_show_mini_cart_totals_taxes", function( $param ) {
// Do something
return $param;
}, 10, 1 );
woocommerce_gzd_show_mini_cart_totals_differential_taxation_notice Filter
$paramstring
add_filter( "woocommerce_gzd_show_mini_cart_totals_differential_taxation_notice", function( $param ) {
// Do something
return $param;
}, 10, 1 );
woocommerce_gzd_disable_mini_cart_item_legal_details Filter
This filter serves to manually disable mini cart item legal details.
$disablebool Whether to disable or not.
add_filter( "woocommerce_gzd_disable_mini_cart_item_legal_details", function( $disable ) {
// Do something
return $disable;
}, 10, 1 );
woocommerce_gzd_template_add_price_html_suffixes_args Filter
In some cases (e.g. product widgets) Germanized has to add legal information as a suffix because no other filters exist. This filter serves to decide which info to append and in which order.
$argsarray The data to be appended.$locationstring The location e.g. product_widget.
add_filter( "woocommerce_gzd_template_add_price_html_suffixes_args", function( $args, $location ) {
// Do something
return $args;
}, 10, 2 );
woocommerce_gzd_template_add_price_html_suffix Filter
Filter that allows adjusting the HTML suffix for product widgets.
$htmlstring The suffix.$argsarray The data which was appended.$locationstring The location.
add_filter( "woocommerce_gzd_template_add_price_html_suffix", function( $html, $args, $location ) {
// Do something
return $html;
}, 10, 3 );
woocommerce_gzd_maybe_flush_cache Action
Flush cache action. Trigger the flush cache action to indicate that Germanized wants to flush the cache.
$typestring Cache type e.g. db.$cache_argsarray Additional arguments.
add_action( "woocommerce_gzd_maybe_flush_cache", function( $type, $cache_args ) {
// Do something
}, 10, 2 );