• Germanized
  • Hooks

Germanized Core

woocommerce_gzd_add_force_pay_order_parameter Filter

Filter whether to add the `force_pay_order` parameter to the URL to allow automatically redirecting the customer to the chosen payment provider after clicking the link.

  1. $enable bool Set to `false` to disable.
  2. $order_id int The order id.
add_filter( "woocommerce_gzd_add_force_pay_order_parameter", function( $enable, $order_id ) {
    // Do something
    return $enable;    
}, 10, 2 );

woocommerce_gzd_custom_checkout_admin_fields Filter

Filter to adjust custom checkout-related admin fields. This filter may be used to output certain checkout fields within admin order screen.

  1. $custom_fields array Array of fields.
  2. $checkout \WC_GZD_Checkout The checkout instance.
add_filter( "woocommerce_gzd_custom_checkout_admin_fields", function( $custom_fields, $checkout ) {
    // Do something
    return $custom_fields;    
}, 10, 2 );

woocommerce_gzd_custom_checkout_fields Filter

Filter to adjust custom checkout-related frontend fields. This filter may be used to output certain checkout fields within the checkout.

  1. $custom_fields array Array of fields.
  2. $checkout \WC_GZD_Checkout The checkout instance.
add_filter( "woocommerce_gzd_custom_checkout_fields", function( $custom_fields, $checkout ) {
    // Do something
    return $custom_fields;    
}, 10, 2 );

woocommerce_gzd_disable_custom_shipping_method_tax_calculation Filter

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

woocommerce_gzd_shipping_tax_shares Filter

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

woocommerce_gzd_force_additional_costs_taxation Filter

Calculate split taxes if the cart contains more than one tax rate. Tax rounding (e.g. for subtotal) is handled by WC_Cart_Totals::get_shipping_from_cart

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

woocommerce_gzd_force_fee_tax_calculation Filter

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

woocommerce_gzd_skip_fee_split_tax_calculation Filter

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

woocommerce_gzd_fee_tax_shares Filter

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

woocommerce_gzd_fee_costs_include_tax Filter

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

woocommerce_gzd_db_prices_by_display_prices Filter

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

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_order_needs_age_verification Filter

Filter to determine whether an order needs age verification or not.

  1. $needs_verification bool Whether the order needs age verification or not.
  2. $order_id int The order id
add_filter( "woocommerce_gzd_order_needs_age_verification", function( $needs_verification, $order_id ) {
    // Do something
    return $needs_verification;    
}, 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 string
add_filter( "woocommerce_gzd_cart_main_service_tax_class", function( $param ) {
    // Do something
    return $param;    
}, 10, 1 );

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_product_import_formatting_callbacks Filter

Filter that allows adjusting product import formatting callbacks for Germanized product data.

  1. $callbacks array Key => value array containing meta keys and callback functions.
add_filter( "woocommerce_gzd_product_import_formatting_callbacks", function( $callbacks ) {
    // Do something
    return $callbacks;    
}, 10, 1 );

woocommerce_gzd_product_import_column_{$column_name} Filter

Filter that allows adjusting product import data for a certain `$column_name`.

  1. $product \WC_Product The product object
  2. $value mixed The import value.

woocommerce_gzd_hide_delivery_time_for_grouped_product Filter

Filter that decides whether to hide delivery time for grouped products or not.

  1. $hide bool Whether to hide delivery time or not.
  2. $product \WC_GZD_Product_Grouped The product object.
add_filter( "woocommerce_gzd_hide_delivery_time_for_grouped_product", function( $hide, $product ) {
    // Do something
    return $hide;    
}, 10, 2 );

woocommerce_gzd_grouped_unit_price_html Filter

Filter to adjust grouped 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_Grouped The product object.
add_filter( "woocommerce_gzd_grouped_unit_price_html", function( $price, $product ) {
    // Do something
    return $price;    
}, 10, 2 );

woocommerce_gzd_unit_price_html Filter

Filter to adjust the product’s unit price HTML output.

  1. $html string The unit price as HTML.
  2. $product \WC_GZD_Product The product object.
  3. $param_3 string
add_filter( "woocommerce_gzd_unit_price_html", function( $html, $product, $param_3 ) {
    // Do something
    return $html;    
}, 10, 3 );

woocommerce_gzd_nutrient_reference_values Filter

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

woocommerce_gzd_nutri_score_values Filter

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

woocommerce_gzd_nutrient_types Filter

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

woocommerce_gzd_nutrient_rounding_rules Filter

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

woocommerce_gzd_direct_debit_icon Filter

Filter to allow adding an icon to direct debit gateway.

  1. $icon_url string The icon URL.
add_filter( "woocommerce_gzd_direct_debit_icon", function( $icon_url ) {
    // Do something
    return $icon_url;    
}, 10, 1 );

woocommerce_gzd_direct_debit_export_order_statuses Filter

Filter to adjust direct debit export valid order statuses.

  1. $order_statuses array Valid order statuses to be exported.
add_filter( "woocommerce_gzd_direct_debit_export_order_statuses", function( $order_statuses ) {
    // Do something
    return $order_statuses;    
}, 10, 1 );