• Germanized
  • Hooks

Germanized Core

woocommerce_gzd_product_delivery_time_html Filter

Filter to adjust product delivery time html output.

  1. $html string The delivery time html.
  2. $product \WC_GZD_Product The product object.
add_filter( "woocommerce_gzd_product_delivery_time_html", function( $html, $product ) {
    // Do something
    return $html;    
}, 10, 2 );

woocommerce_gzd_defect_description Filter

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

woocommerce_germanized_hide_shipping_costs_text Filter

Filter to optionally disable shipping costs info for a certain product.

  1. $disable bool Whether to disable the shipping costs notice or not.
  2. $product \WC_GZD_Product The product object.
add_filter( "woocommerce_germanized_hide_shipping_costs_text", function( $disable, $product ) {
    // Do something
    return $disable;    
}, 10, 2 );

woocommerce_germanized_disabled_shipping_text Filter

Filter to adjust a product’s disabled shipping costs notice.

  1. $output string The output.
  2. $product \WC_GZD_Product The product object.
add_filter( "woocommerce_germanized_disabled_shipping_text", function( $output, $product ) {
    // Do something
    return $output;    
}, 10, 2 );

woocommerce_gzd_enable_rating_authenticity_notices Filter

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

woocommerce_gzd_small_business_show_total_vat_notice Filter

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

woocommerce_gzd_checkout_use_legacy_table_replacement_template Filter

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

woocommerce_gzd_disable_wc_privacy_policy_checkbox Filter

Filter to turn on Woo default privacy checkbox in checkout. Germanized disables the default WooCommerce privacy checkbox to replace it with it’s own data privacy checkbox instead.

  1. $enable bool Set to `false` to re-enable Woo default privacy checkbox.
add_filter( "woocommerce_gzd_disable_wc_privacy_policy_checkbox", function( $enable ) {
    // Do something
    return $enable;    
}, 10, 1 );

woocommerce_gzd_differential_taxation_cart_item_mark Filter

Differential taxation mark. Adjust the default differential taxation mark.

  1. $html string The differential mark e.g. `*`.
add_filter( "woocommerce_gzd_differential_taxation_cart_item_mark", function( $html ) {
    // Do something
    return $html;    
}, 10, 1 );

woocommerce_gzd_recalculate_unit_price_cart Filter

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

woocommerce_gzd_unit_price_cart_quantity Filter

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

woocommerce_gzd_cart_product_deposit_packaging_type_html Filter

Filter that allows adjusting the product deposit packaging type HTML content before outputting within cart.

  1. $packaging_title_html string The HTML content.
  2. $cart_item array The cart item data.
  3. $cart_item_key string The cart item key.
add_filter( "woocommerce_gzd_cart_product_deposit_packaging_type_html", function( $packaging_title_html, $cart_item, $cart_item_key ) {
    // Do something
    return $packaging_title_html;    
}, 10, 3 );

woocommerce_gzd_cart_product_units_html Filter

Filter that allows adjusting the product units HTML content before outputting within cart.

  1. $product_units_html string The HTML content.
  2. $cart_item array The cart item data.
  3. $cart_item_key string The cart item key.
add_filter( "woocommerce_gzd_cart_product_units_html", function( $product_units_html, $cart_item, $cart_item_key ) {
    // Do something
    return $product_units_html;    
}, 10, 3 );

woocommerce_gzd_cart_applies_for_photovoltaic_system_vat_exemption Filter

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

woocommerce_gzd_cart_customer_applies_for_photovoltaic_system_vat_exemption Filter

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

woocommerce_gzd_order_contains_photovoltaic_system Filter

Determines whether a photovoltaic system exists in the current order.

  1. $has_photovoltaic_system bool Whether the order includes a photovoltaic system or not.
  2. $items array The order items.
add_filter( "woocommerce_gzd_order_contains_photovoltaic_system", function( $has_photovoltaic_system, $items ) {
    // Do something
    return $has_photovoltaic_system;    
}, 10, 2 );

woocommerce_gzd_cart_contains_photovoltaic_system Filter

Determines whether a photovoltaic system exists in the current cart.

  1. $has_photovoltaic_system bool Whether the cart includes a photovoltaic system or not.
  2. $items array The cart items.
add_filter( "woocommerce_gzd_cart_contains_photovoltaic_system", function( $has_photovoltaic_system, $items ) {
    // Do something
    return $has_photovoltaic_system;    
}, 10, 2 );

woocommerce_gzd_cart_needs_age_verification Filter

Determines whether a cart needs age verification or not. This filter might adjust whether cart items need age verification or not.

  1. $needs_age_verification bool Whether items need age verification or not.
  2. $items array The cart items.
add_filter( "woocommerce_gzd_cart_needs_age_verification", function( $needs_age_verification, $items ) {
    // Do something
    return $needs_age_verification;    
}, 10, 2 );

woocommerce_gzd_order_age_verification_min_age Filter

Returns the minimum age for certain order items. This filter might be used to adjust the minimum age for a certain order used for the age verification.

  1. $min_age int The minimum age required to buy.
  2. $items array The order items.
add_filter( "woocommerce_gzd_order_age_verification_min_age", function( $min_age, $items ) {
    // Do something
    return $min_age;    
}, 10, 2 );

woocommerce_gzd_cart_age_verification_min_age Filter

Returns the minimum age for a cart. This filter might be used to adjust the minimum age for a certain cart used for the age verification.

  1. $min_age int The minimum age required to checkout.
  2. $items array The cart items.
add_filter( "woocommerce_gzd_cart_age_verification_min_age", function( $min_age, $items ) {
    // Do something
    return $min_age;    
}, 10, 2 );

woocommerce_gzd_cart_item_not_supporting_tax_share Filter

Filter whether cart item supports tax share calculation or not.

  1. $exempt bool True if it is an exempt. False if not.
  2. $item array The cart item.
  3. $key string The cart item hash if existent.
  4. $type string The tax calculation type e.g. shipping or fees.
add_filter( "woocommerce_gzd_cart_item_not_supporting_tax_share", function( $exempt, $item, $key, $type ) {
    // Do something
    return $exempt;    
}, 10, 4 );

woocommerce_gzd_order_item_tax_share_exempt Filter

Filter whether order item supports tax share calculation or not.

  1. $exempt bool True if it is an exempt. False if not.
  2. $item \WC_Order_Item The order item.
  3. $type string The tax calculation type e.g. shipping or fees.
add_filter( "woocommerce_gzd_order_item_tax_share_exempt", function( $exempt, $item, $type ) {
    // Do something
    return $exempt;    
}, 10, 3 );

woocommerce_gzd_tax_share_order_item_tax_rate Filter

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

woocommerce_gzd_tax_share_cart_item_tax_rate Filter

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

woocommerce_gzd_cart_main_service_tax_class Filter

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

woocommerce_gzd_cart_taxes Filter

Filter to adjust the cart tax items.

  1. $tax_array array The array containing tax amounts.
  2. $cart \WC_Cart The cart instance.
  3. $include_shipping_taxes bool Whether to include shipping taxes or not.
add_filter( "woocommerce_gzd_cart_taxes", function( $tax_array, $cart, $include_shipping_taxes ) {
    // Do something
    return $tax_array;    
}, 10, 3 );

woocommerce_gzd_allow_disabling_checkout_adjustments Filter

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

woocommerce_gzd_prevent_checkout_order_review_hook_reset Filter

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

woocommerce_gzd_disabled_checkout_adjustments Action

add_action( "woocommerce_gzd_disabled_checkout_adjustments", function(  ) {
    // Do something
        
}, 10 );

woocommerce_gzd_get_product_variation_{$prop} Filter

Filter to adjust a certain product variation property e.g. unit_price. The dynamic portion of the hook name, `$prop` refers to the product property e.g. unit_price.

  1. $value mixed The property value.
  2. $gzd_product \WC_GZD_Product_Variation The GZD product instance.
  3. $product \WC_Product_Variation The product instance.
  4. $context string The context

woocommerce_gzd_get_product_variation_unit Filter

This filter is documented in includes/class-wc-gzd-product-variation.php

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

woocommerce_gzd_deposit_packaging_types Filter

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

woocommerce_gzd_deposit_packaging_type_title Filter

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

woocommerce_gzd_small_business_product_notice Filter

Filter to adjust the small business product notice.

  1. $html string The notice.
add_filter( "woocommerce_gzd_small_business_product_notice", function( $html ) {
    // Do something
    return $html;    
}, 10, 1 );

woocommerce_gzd_digital_product_types Filter

Filter to allow adjusting which product types are considered digital types. Digital product types are used to check whether a possible revocation exempt exists or not.

  1. $types array The product types.
add_filter( "woocommerce_gzd_digital_product_types", function( $types ) {
    // Do something
    return $types;    
}, 10, 1 );

woocommerce_gzd_product_is_revocation_exempt Filter

Filter that allows adjusting whether a certain product is a revocation exempt in terms of a certain type (e.g. digital or service).

  1. $is_exempt bool Whether the product is an exempt or not.
  2. $product \WC_Product The product object.
  3. $type string The exempt type e.g. digital or service.
  4. $context_object object E.g. the cart item or order item
add_filter( "woocommerce_gzd_product_is_revocation_exempt", function( $is_exempt, $product, $type, $context_object ) {
    // Do something
    return $is_exempt;    
}, 10, 4 );

woocommerce_gzd_recalculated_unit_prices Filter

Filter to adjust unit price after a recalculation happened.

  1. $prices array The price data.
  2. $product \WC_GZD_Product The product object.
  3. $args array Additional arguments.
add_filter( "woocommerce_gzd_recalculated_unit_prices", function( $prices, $product, $args ) {
    // Do something
    return $prices;    
}, 10, 3 );

woocommerce_gzd_product_review_is_verified Filter

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

woocommerce_gzd_product_rating_is_verified Filter

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

woocommerce_gzd_shortcode_product_unit_price_html Filter

Filter shortcode product unit price output.

  1. $html string The output.
  2. $atts array The shortcode arguments.
add_filter( "woocommerce_gzd_shortcode_product_unit_price_html", function( $html, $atts ) {
    // Do something
    return $html;    
}, 10, 2 );

woocommerce_gzd_shortcode_product_units_html Filter

Filter shortcode product unit output.

  1. $html string The output.
  2. $atts array The shortcode arguments.
add_filter( "woocommerce_gzd_shortcode_product_units_html", function( $html, $atts ) {
    // Do something
    return $html;    
}, 10, 2 );

woocommerce_gzd_shortcode_product_delivery_time_html Filter

Filter shortcode product delivery time output.

  1. $html string The output.
  2. $atts array The shortcode arguments.
add_filter( "woocommerce_gzd_shortcode_product_delivery_time_html", function( $html, $atts ) {
    // Do something
    return $html;    
}, 10, 2 );

woocommerce_gzd_shortcode_product_tax_notice_html Filter

Filter shortcode product tax notice output.

  1. $html string The output.
  2. $atts array The shortcode arguments.
add_filter( "woocommerce_gzd_shortcode_product_tax_notice_html", function( $html, $atts ) {
    // Do something
    return $html;    
}, 10, 2 );

woocommerce_gzd_shortcode_product_safety_information_html Filter

Filter shortcode product safety information output.

  1. $html string The output.
  2. $atts array The shortcode arguments.
add_filter( "woocommerce_gzd_shortcode_product_safety_information_html", function( $html, $atts ) {
    // Do something
    return $html;    
}, 10, 2 );

woocommerce_gzd_shortcode_product_safety_attachments_html Filter

Filter shortcode product safety attachments output.

  1. $html string The output.
  2. $atts array The shortcode arguments.
add_filter( "woocommerce_gzd_shortcode_product_safety_attachments_html", function( $html, $atts ) {
    // Do something
    return $html;    
}, 10, 2 );

woocommerce_gzd_shortcode_product_safety_instructions_html Filter

Filter shortcode product safety instructions output.

  1. $html string The output.
  2. $atts array The shortcode arguments.
add_filter( "woocommerce_gzd_shortcode_product_safety_instructions_html", function( $html, $atts ) {
    // Do something
    return $html;    
}, 10, 2 );