• Germanized
  • Hooks

Germanized Core

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

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

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

woocommerce_gzd_product_grid_block_price_xpath Filter

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

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

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

  1. $param array
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_before_add_variation_options Action

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

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

woocommerce_gzd_product_allergenic_heading Filter

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

woocommerce_gzd_product_nutrients_heading Filter

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

woocommerce_gzd_insert_order_submit_fallback Filter

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

  1. $show bool Whether to show or hide the button.
  2. $order_id int 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.

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

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

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

woocommerce_gzd_show_mini_cart_totals_shipping_costs_notice Filter

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

woocommerce_gzd_show_mini_cart_totals_differential_taxation_notice Filter

  1. $param string
add_filter( "woocommerce_gzd_show_mini_cart_totals_differential_taxation_notice", function( $param ) {
    // Do something
    return $param;    
}, 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.

  1. $args array The data to be appended.
  2. $location string 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.

  1. $html string The suffix.
  2. $args array The data which was appended.
  3. $location string The location.
add_filter( "woocommerce_gzd_template_add_price_html_suffix", function( $html, $args, $location ) {
    // Do something
    return $html;    
}, 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_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

Filter to show incl. VAT for small business after order/cart total. This filter serves for shops which want to enable a incl. VAT notice for small businesses. Some institutions (e.g. Händlerbund) state that this is necessary. “`php function ex_enable_small_business_vat_notice() { return true; } add_filter( ‘woocommerce_gzd_small_business_show_total_vat_notice’, ‘ex_enable_small_business_vat_notice’, 10 ); “`

  1. $enable bool Whether to enable the notice or not.
add_filter( "woocommerce_gzd_small_business_show_total_vat_notice", function( $enable ) {
    // Do something
    return $enable;    
}, 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_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_privacy_erase_order_personal_metadata Filter

Filter to adjust personal order data to be anonymized while removing personal data from orders.

  1. $meta_keys array Meta keys to be anonymized.
  2. $order \WC_Order The order object.
add_filter( "woocommerce_gzd_privacy_erase_order_personal_metadata", function( $meta_keys, $order ) {
    // Do something
    return $meta_keys;    
}, 10, 2 );

woocommerce_gzd_privacy_erase_customer_personal_metadata Filter

Filter to adjust personal customer data to be anonymized while removing personal data from customers.

  1. $meta_keys array Meta keys to be anonymized.
  2. $customer \WC_Customer The customer object.
add_filter( "woocommerce_gzd_privacy_erase_customer_personal_metadata", function( $meta_keys, $customer ) {
    // Do something
    return $meta_keys;    
}, 10, 2 );

woocommerce_gzd_privacy_export_order_personal_metadata Filter

Filter to allow exporting personal data added by Germanized to orders.

  1. $meta_keys array Keys as well as titles to be exported.
  2. $order \WC_Order The order object.
add_filter( "woocommerce_gzd_privacy_export_order_personal_metadata", function( $meta_keys, $order ) {
    // Do something
    return $meta_keys;    
}, 10, 2 );

woocommerce_gzd_privacy_export_customer_personal_metadata Filter

Filter to allow exporting personal data added by Germanized to customers.

  1. $meta_keys array Keys as well as titles to be exported.
  2. $customer \WC_Customer The customer object.
add_filter( "woocommerce_gzd_privacy_export_customer_personal_metadata", function( $meta_keys, $customer ) {
    // Do something
    return $meta_keys;    
}, 10, 2 );

woocommerce_gzd_product_attribute_checkout_visible_default_value Filter

Filter whether a product attribute should be visible within checkout by default.

  1. $default_visible bool Set to `true` to enable default checkout visibility.
  2. $attribute \WC_GZD_Product_Attribute The product attribute
add_filter( "woocommerce_gzd_product_attribute_checkout_visible_default_value", function( $default_visible, $attribute ) {
    // Do something
    return $default_visible;    
}, 10, 2 );

wc_gzd_revocation_admin_mail Filter

Filter the revocation admin email receiver address.

  1. $email string The email address.
add_filter( "wc_gzd_revocation_admin_mail", function( $email ) {
    // Do something
    return $email;    
}, 10, 1 );

woocommerce_gzd_email_setup_locale Filter

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