• Germanized
  • Hooks

Germanized Core

woocommerce_gzd_shortcode_product_manufacturer_html Filter

Filter shortcode product manufacturer output.

  1. $html string The output.
  2. $atts array 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.

  1. $html string The output.
  2. $atts array 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.

  1. $html string The output.
  2. $atts array 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.

  1. $html string The output.
  2. $atts array 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.

  1. $html string The output.
  2. $atts array 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.

  1. $html string The output.
  2. $atts array The shortcode arguments.
  3. $param_3 string
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.

  1. $html string The output.
  2. $atts array 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

  1. $param string
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.

  1. $price string The price.
  2. $product \WC_GZD_Product_Variable The product object.
  3. $min_or_max string Either `min` or `max`.
  4. $display bool 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.

  1. $price string The price.
  2. $product \WC_GZD_Product_Variable The product object.
  3. $min_or_max string Either `min` or `max`.
  4. $display bool 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.

  1. $price string The price.
  2. $product \WC_GZD_Product_Variable The product object.
  3. $min_or_max string Either `min` or `max`.
  4. $display bool 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.

  1. $price string The price.
  2. $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.

  1. $hide_unit_price bool Whether to hide the unit price or not.
  2. $price string The price.
  3. $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

  1. $param_1 string
  2. $param_2 string
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

  1. $param_1 string
  2. $param_2 string
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

  1. $param_1 string
  2. $param_2 string
  3. $param_3 string
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.

  1. $ \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.

  1. $price string The unit price.
  2. $product \WC_Product_Variation The product object.
  3. $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.

  1. $price string The regular unit price.
  2. $product \WC_Product_Variation The product object.
  3. $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.

  1. $price string The sale unit price.
  2. $product \WC_Product_Variation The product object.
  3. $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.

  1. $unit_prices array Array containing unit price data.
  2. $product \WC_GZD_Product_Variable The product object.
  3. $display bool 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

  1. $param_1 string
  2. $param_2 string
  3. $param_3 string
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

  1. $param_1 string
  2. $param_2 string
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

  1. $param string
add_filter( "woocommerce_gzd_encryption_enable_logging", function( $param ) {
    // Do something
    return $param;    
}, 10, 1 );

woocommerce_gzd_encryption_log_context Filter

  1. $param string
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

  1. $param string
add_filter( "woocommerce_gzd_dependencies_instance", function( $param ) {
    // Do something
    return $param;    
}, 10, 1 );

woocommerce_gzd_instant_order_confirmation Filter

  1. $param_1 bool
  2. $param_2 string
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 ); „`

  1. $ages array 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

  1. $param_1 string
  2. $param_2 string
  3. $param_3 string
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

  1. $param_1 string
  2. $param_2 string
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

  1. $param_1 string
  2. $param_2 string
  3. $param_3 string
  4. $param_4 string
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

  1. $param_1 bool
  2. $param_2 string
add_filter( "woocommerce_gzd_food_attribute_trim_zeros", function( $param_1, $param_2 ) {
    // Do something
    return $param_1;    
}, 10, 2 );

woocommerce_gzd_small_business_notice Filter

Filter the (global) small business notice.

  1. $html string 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.

  1. $notice string 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.

  1. $html string 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).

  1. $return bool Whether the method id matches one of the expected methods or not.
  2. $method_id string The shipping method id.
  3. $supported array 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.

  1. $return bool Whether to display the checkbox or not.
  2. $rate_ids array 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

  1. $param_1 string
  2. $param_2 string
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“.

  1. $label string The label.
  2. $rate_percentage int The percentage e.g. 19.
  3. $param_3 string
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.

  1. $percentage int The percentage e.g. 19.
  2. $tax_rate_id int The tax rate id.
  3. $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.

  1. $html string The notice output.
  2. $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.

  1. $html string 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.

  1. $html string 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.

  1. $page_id int 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 ); „`

  1. $titles array 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

  1. $param_1 string
  2. $param_2 string
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

  1. $param_1 bool
  2. $param_2 string
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

  1. $param_1 string
  2. $param_2 string
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

  1. $param bool
add_filter( "woocommerce_gzd_adjust_price_range_format", function( $param ) {
    // Do something
    return $param;    
}, 10, 1 );