woocommerce_gzd_shortcode_product_manufacturer_html Filter
Filter shortcode product manufacturer output.
$htmlstring The output.$attsarray The shortcode arguments.
add_filter( "woocommerce_gzd_shortcode_product_manufacturer_html", function( $html, $atts ) {
// Do something
return $html;
}, 10, 2 );
woocommerce_gzd_shortcode_product_shipping_notice_html Filter
Filter shortcode product shipping notice output.
$htmlstring The output.$attsarray The shortcode arguments.
add_filter( "woocommerce_gzd_shortcode_product_shipping_notice_html", function( $html, $atts ) {
// Do something
return $html;
}, 10, 2 );
woocommerce_gzd_shortcode_product_defect_description_html Filter
Filter shortcode product defect description output.
$htmlstring The output.$attsarray The shortcode arguments.
add_filter( "woocommerce_gzd_shortcode_product_defect_description_html", function( $html, $atts ) {
// Do something
return $html;
}, 10, 2 );
woocommerce_gzd_shortcode_product_deposit_html Filter
Filter shortcode product deposit output.
$htmlstring The output.$attsarray The shortcode arguments.
add_filter( "woocommerce_gzd_shortcode_product_deposit_html", function( $html, $atts ) {
// Do something
return $html;
}, 10, 2 );
woocommerce_gzd_shortcode_product_power_supply_html Filter
Filter shortcode product power supply.
$htmlstring The output.$attsarray The shortcode arguments.
add_filter( "woocommerce_gzd_shortcode_product_power_supply_html", function( $html, $atts ) {
// Do something
return $html;
}, 10, 2 );
woocommerce_gzd_shortcode_product_food_html Filter
Filter shortcode product food output.
$htmlstring The output.$attsarray The shortcode arguments.$param_3string
add_filter( "woocommerce_gzd_shortcode_product_food_html", function( $html, $atts, $param_3 ) {
// Do something
return $html;
}, 10, 3 );
woocommerce_gzd_shortcode_product_deposit_packaging_type_html Filter
Filter shortcode product deposit packaging type output.
$htmlstring The output.$attsarray The shortcode arguments.
add_filter( "woocommerce_gzd_shortcode_product_deposit_packaging_type_html", function( $html, $atts ) {
// Do something
return $html;
}, 10, 2 );
woocommerce_gzd_is_loadable Filter
$paramstring
add_filter( "woocommerce_gzd_is_loadable", 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_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_variable_disable_unit_price_from_to Filter
Filter to adjust whether to hide from-to unit prices or not.
$hide_unit_pricebool Whether to hide the unit price or not.$pricestring The price.$product\WC_GZD_Product_Variable The product object.
add_filter( "woocommerce_gzd_variable_disable_unit_price_from_to", function( $hide_unit_price, $price, $product ) {
// Do something
return $hide_unit_price;
}, 10, 3 );
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_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_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_encryption_key_constant Filter
$param_1string$param_2string
add_filter( "woocommerce_gzd_encryption_key_constant", function( $param_1, $param_2 ) {
// Do something
return $param_1;
}, 10, 2 );
woocommerce_gzd_encryption_enable_logging Filter
$paramstring
add_filter( "woocommerce_gzd_encryption_enable_logging", function( $param ) {
// Do something
return $param;
}, 10, 1 );
woocommerce_gzd_encryption_log_context Filter
$paramstring
add_filter( "woocommerce_gzd_encryption_log_context", function( $param ) {
// Do something
return $param;
}, 10, 1 );
woocommerce_gzd_dependencies_instance Filter
This filter is documented in woocommerce-germanized.php
$paramstring
add_filter( "woocommerce_gzd_dependencies_instance", function( $param ) {
// Do something
return $param;
}, 10, 1 );
woocommerce_gzd_instant_order_confirmation Filter
$param_1bool$param_2string
add_filter( "woocommerce_gzd_instant_order_confirmation", function( $param_1, $param_2 ) {
// Do something
return $param_1;
}, 10, 2 );
woocommerce_gzd_age_verification_min_ages Filter
Returns minimum age options. This filter might be used to adjust the minimum age options available to choose from e.g. on product level. „`php function ex_filter_add_min_ages( $ages ) { $ages[14] = ‚>= 14 years‘; return $ages; } add_filter( ‚woocommerce_gzd_age_verification_min_ages‘, ‚ex_filter_add_min_ages‘, 10, 1 ); „`
$agesarray Array containing age => value elements.
add_filter( "woocommerce_gzd_age_verification_min_ages", function( $ages ) {
// Do something
return $ages;
}, 10, 1 );
woocommerce_gzd_formatted_tax_rate_percentage Filter
$param_1string$param_2string$param_3string
add_filter( "woocommerce_gzd_formatted_tax_rate_percentage", function( $param_1, $param_2, $param_3 ) {
// Do something
return $param_1;
}, 10, 3 );
woocommerce_gzd_formatted_alcohol_content Filter
$param_1string$param_2string
add_filter( "woocommerce_gzd_formatted_alcohol_content", function( $param_1, $param_2 ) {
// Do something
return $param_1;
}, 10, 2 );
woocommerce_gzd_formatted_food_attribute_value Filter
$param_1string$param_2string$param_3string$param_4string
add_filter( "woocommerce_gzd_formatted_food_attribute_value", function( $param_1, $param_2, $param_3, $param_4 ) {
// Do something
return $param_1;
}, 10, 4 );
woocommerce_gzd_food_attribute_trim_zeros Filter
$param_1bool$param_2string
add_filter( "woocommerce_gzd_food_attribute_trim_zeros", function( $param_1, $param_2 ) {
// Do something
return $param_1;
}, 10, 2 );
woocommerce_gzd_legal_pages Filter
Filters pages considered as legal pages.
$legal_pagesarray Array containing key and title of legal pages.$email_attachable_onlybool Whether to include those attachable to emails only or not.
add_filter( "woocommerce_gzd_legal_pages", function( $legal_pages, $email_attachable_only ) {
// Do something
return $legal_pages;
}, 10, 2 );
woocommerce_gzd_legal_page_permalink Filter
Filters the page permalink for a certain legal page.
$typestring Legal page identifier e.g. terms.$param_2string
add_filter( "woocommerce_gzd_legal_page_permalink", function( $type, $param_2 ) {
// Do something
return $type;
}, 10, 2 );
woocommerce_gzd_small_business_notice Filter
Filter the (global) small business notice.
$htmlstring The notice HTML.
add_filter( "woocommerce_gzd_small_business_notice", function( $html ) {
// Do something
return $html;
}, 10, 1 );
woocommerce_gzd_differential_taxation_notice_text_mark Filter
Filters the general differential taxation notice mark.
$noticestring The notice mark, e.g. `*`.
add_filter( "woocommerce_gzd_differential_taxation_notice_text_mark", function( $notice ) {
// Do something
return $notice;
}, 10, 1 );
woocommerce_gzd_differential_taxation_notice_text_checkout Filter
Filter to adjust the differential taxation notice text during checkout.
$htmlstring The notice.
add_filter( "woocommerce_gzd_differential_taxation_notice_text_checkout", function( $html ) {
// Do something
return $html;
}, 10, 1 );
woocommerce_gzd_shipping_method_id_matches_supported Filter
Filter to check whether a certain shipping method id matches one of the shipping method expected (e.g. from the settings).
$returnbool Whether the method id matches one of the expected methods or not.$method_idstring The shipping method id.$supportedarray The shipping method ids to search for.
add_filter( "woocommerce_gzd_shipping_method_id_matches_supported", function( $return, $method_id, $supported ) {
// Do something
return $return;
}, 10, 3 );
woocommerce_gzd_enable_parcel_delivery_data_transfer_checkbox Filter
Filter that allows adjusting whether to show the parcel delivery data transfer checkbox or not for rate ids.
$returnbool Whether to display the checkbox or not.$rate_idsarray Shipping rate ids to check against.
add_filter( "woocommerce_gzd_enable_parcel_delivery_data_transfer_checkbox", function( $return, $rate_ids ) {
// Do something
return $return;
}, 10, 2 );
woocommerce_gzd_show_taxes_before_total Filter
$param_1string$param_2string
add_filter( "woocommerce_gzd_show_taxes_before_total", function( $param_1, $param_2 ) {
// Do something
return $param_1;
}, 10, 2 );
woocommerce_gzd_tax_rate_label Filter
Allow adjusting the tax rate label e.g. „incl. 19% tax“.
$labelstring The label.$rate_percentageint The percentage e.g. 19.$param_3string
add_filter( "woocommerce_gzd_tax_rate_label", function( $label, $rate_percentage, $param_3 ) {
// Do something
return $label;
}, 10, 3 );
woocommerce_gzd_order_tax_rate_percentage Filter
Allow adjusting the order tax rate percentage for a certain tax rate id.
$percentageint The percentage e.g. 19.$tax_rate_idint The tax rate id.$order\WC_Order The order object
add_filter( "woocommerce_gzd_order_tax_rate_percentage", function( $percentage, $tax_rate_id, $order ) {
// Do something
return $percentage;
}, 10, 3 );
woocommerce_gzd_shipping_costs_text Filter
Filter to adjust the shipping costs legal text for a certain product.
$htmlstring The notice output.$product\WC_GZD_Product The product object.
add_filter( "woocommerce_gzd_shipping_costs_text", function( $html, $product ) {
// Do something
return $html;
}, 10, 2 );
woocommerce_gzd_shipping_costs_cart_text Filter
Filter to adjust the shipping costs legal text during cart, checkout and orders.
$htmlstring The notice output.
add_filter( "woocommerce_gzd_shipping_costs_cart_text", function( $html ) {
// Do something
return $html;
}, 10, 1 );
woocommerce_gzd_differential_taxation_notice_text Filter
Filter to adjust the differential taxation notice text.
$htmlstring The notice.
add_filter( "woocommerce_gzd_differential_taxation_notice_text", function( $html ) {
// Do something
return $html;
}, 10, 1 );
woocommerce_gzd_privacy_policy_page_id Filter
Filter to adjust the Germanized privacy page id.
$page_idint The page id.
add_filter( "woocommerce_gzd_privacy_policy_page_id", function( $page_id ) {
// Do something
return $page_id;
}, 10, 1 );
woocommerce_gzd_title_options Filter
Filter default customer title options e.g. Mr. or Ms. „`php function ex_adjust_title_options( $titles ) { // Add a extra title option $titles[3] = __( ‚Neutral‘, ‚my-text-domain‘ ); return $titles; } add_filter( ‚woocommerce_gzd_title_options‘, ‚ex_adjust_title_options‘, 10, 1 ); „`
$titlesarray Array containing title selection options.
add_filter( "woocommerce_gzd_title_options", function( $titles ) {
// Do something
return $titles;
}, 10, 1 );
woocommerce_gzd_customer_formatted_title Filter
$param_1string$param_2string
add_filter( "woocommerce_gzd_customer_formatted_title", function( $param_1, $param_2 ) {
// Do something
return $param_1;
}, 10, 2 );
woocommerce_gzd_show_variable_more_variants_notice Filter
$param_1bool$param_2string
add_filter( "woocommerce_gzd_show_variable_more_variants_notice", function( $param_1, $param_2 ) {
// Do something
return $param_1;
}, 10, 2 );
woocommerce_gzd_variable_more_variants_notice_text Filter
$param_1string$param_2string
add_filter( "woocommerce_gzd_variable_more_variants_notice_text", function( $param_1, $param_2 ) {
// Do something
return $param_1;
}, 10, 2 );
woocommerce_gzd_adjust_price_range_format Filter
$parambool
add_filter( "woocommerce_gzd_adjust_price_range_format", function( $param ) {
// Do something
return $param;
}, 10, 1 );