• Germanized
  • Hooks

Germanized Core

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

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

woocommerce_gzd_force_tax_location_vat_base_rates Filter

Filter to adjust whether virtual VAT is applicable or not. If set to true, Germanized will return tax rates based on the user country.

  1. $virtual_vat_applicable bool Whether virtual VAT rates are applicable or not.
  2. $tax_class string The tax class.
  3. $location array The tax location data.
add_filter( "woocommerce_gzd_force_tax_location_vat_base_rates", function( $virtual_vat_applicable, $tax_class, $location ) {
    // Do something
    return $virtual_vat_applicable;    
}, 10, 3 );

woocommerce_gzd_order_item_additional_cost_is_net Filter

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

woocommerce_gzd_skip_order_item_split_tax_calculation Filter

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

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_{$tax_type}_order_tax_shares Filter

  1. $param_1 string
  2. $param_2 string

woocommerce_gzd_order_main_service_tax_class Filter

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

woocommerce_gzd_attempt_order_cancellation_url Filter

Filter the order cancellation URL replacement when customer order cancellation was disabled in the Germanized settings. Defaults to the order-received page.

  1. $url string The return url.
add_filter( "woocommerce_gzd_attempt_order_cancellation_url", function( $url ) {
    // Do something
    return $url;    
}, 10, 1 );

woocommerce_gzd_before_add_order_item_meta Action

Before adding order item meta. Fires before Germanized added order item meta.

  1. $item \WC_Order_Item The order item.
  2. $order \WC_Order The order.
  3. $gzd_item \WC_GZD_Order_Item The order item object.
add_action( "woocommerce_gzd_before_add_order_item_meta", function( $item, $order, $gzd_item ) {
    // Do something
        
}, 10, 3 );

woocommerce_gzd_add_order_item_meta Action

Add order item meta. Fires when Germanized adds order item meta.

  1. $item \WC_Order_Item The order item.
  2. $order \WC_Order The order.
  3. $gzd_product \WC_GZD_Product The product object.
  4. $gzd_item \WC_GZD_Order_Item The order item object.
add_action( "woocommerce_gzd_add_order_item_meta", function( $item, $order, $gzd_product, $gzd_item ) {
    // Do something
        
}, 10, 4 );

woocommerce_gzd_after_add_order_item_meta Action

After adding order item meta. Fires after Germanized added order item meta.

  1. $item \WC_Order_Item The order item.
  2. $order \WC_Order The order.
  3. $gzd_item \WC_GZD_Order_Item The order item object.
add_action( "woocommerce_gzd_after_add_order_item_meta", function( $item, $order, $gzd_item ) {
    // Do something
        
}, 10, 3 );

woocommerce_gzd_enable_b2b_market_unit_price_compatibility Filter

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

woocommerce_gzd_google_for_woocommerce_inject_unit_price Filter

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

woocommerce_gzd_elementor_pro_review_order_heading_container Filter

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

woocommerce_gzd_elementor_pro_checkout_has_built_in_checkout_widget Filter

Move checkboxes right before order summary in case the current checkout is built with Elementor Pro. Do not move the checkboxes in case of Shopengine Elementor addon is active as it does not execute the woocommerce_checkout_order_review hook.

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

woocommerce_gzd_elementor_pro_checkout_move_checkboxes Filter

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

woocommerce_gzd_elementor_pro_disable_checkout_adjustments Filter

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

woocommerce_gzd_product_addons_embed_price_label Filter

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

woocommerce_gzd_enable_cartflows_support Filter

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

woocommerce_gzd_checkout_klarna_add_checkboxes Filter

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

woocommerce_gzd_render_paypal_payments_smart_button Action

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

woocommerce_gzd_woo_discount_rules_simple_product_price_target Filter

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

woocommerce_gzd_woo_discount_rules_variable_product_price_target Filter

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

woocommerce_gzd_show_elementor_upgrade_notice Filter

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

woocommerce_gzd_elementor_widget_$postfix_controls Action

Elementor Widget Controls. Fires after Germanized has added Elementor widget controls.

  1. $this \WC_GZD_Elementor_Widget The actual widget.
  2. $class_name \Elementor\Controls_Manager The controls manager class.

woocommerce_gzd_elementor_widget_$postfix_render Action

Render an Elementor widget. Render a certain Germanized Elementor widget in the frontend.

  1. $product \WC_Product The product object.
  2. $this \WC_GZD_Elementor_Widget The widget instance.

woocommerce_gzd_override_subscriptions_signup_button_text Filter

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

woocommerce_gzd_show_tax_for_cart_subscription_price Filter

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

woocommerce_gzd_polylang_compatibility_loaded Action

Hyyan WooCommerce Polylang Integration compatibility loaded. Fires after Germanized loaded it’s Woo PolyLang compatibility script.

  1. $this \WC_GZD_Compatibility_Woo_Poly_Integration The compatibility instance.
add_action( "woocommerce_gzd_polylang_compatibility_loaded", function( $this ) {
    // Do something
        
}, 10, 1 );

woocommerce_gzd_polylang_order_emails Filter

Filter to add additional order emails to PolyLang.

  1. $order_mails array Array containing additional email ids.
  2. $integration \WC_GZD_Compatibility_Woo_Poly_Integration The integration instance.
add_filter( "woocommerce_gzd_polylang_order_emails", function( $order_mails, $integration ) {
    // Do something
    return $order_mails;    
}, 10, 2 );

woocommerce_gzd_polylang_emails Filter

Filter to get emails relevant for PolyLang.

  1. $mails array Array containing additional email ids.
  2. $integration \WC_GZD_Compatibility_Woo_Poly_Integration The integration instance.
add_filter( "woocommerce_gzd_polylang_emails", function( $mails, $integration ) {
    // Do something
    return $mails;    
}, 10, 2 );

woocommerce_gzd_wpml_compatibility_loaded Action

This action fires after Germanized has loaded it’s WPML compatibility script.

  1. $compatibility \WC_GZD_Compatibility_WPML
add_action( "woocommerce_gzd_wpml_compatibility_loaded", function( $compatibility ) {
    // Do something
        
}, 10, 1 );

woocommerce_gzd_wpml_admin_order_items_translatable_actions Filter

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

woocommerce_gzd_wpml_admin_relevant_string_options Filter

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

woocommerce_gzd_wpml_email_lang Filter

This filter allows adjusting the language determined for the current email instance. The WPML compatibility will then try to switch to the language (if not empty).

  1. $lang string Language e.g. en
  2. $email \WC_Email The email instance.
add_filter( "woocommerce_gzd_wpml_email_lang", function( $lang, $email ) {
    // Do something
    return $lang;    
}, 10, 2 );

woocommerce_gzd_wpml_switched_email_language Action

This action fires as soon as the WPML email language has been switched by the Germanized compatibility script.

  1. $lang string Language e.g. en
  2. $email \WC_Email The email instance.
add_action( "woocommerce_gzd_wpml_switched_email_language", function( $lang, $email ) {
    // Do something
        
}, 10, 2 );

woocommerce_gzd_wpml_email_ids Filter

Filter to register custom emails for which to enable WPML email string translation compatibility.

  1. $emails array Class name as key and email id as value.
add_filter( "woocommerce_gzd_wpml_email_ids", function( $emails ) {
    // Do something
    return $emails;    
}, 10, 1 );

woocommerce_gzd_reload_locale Action

Reload locale. Fires after Germanized plugin textdomain was reloaded programmatically.

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

woocommerce_gzd_wpml_switched_language Action

WPML language switched. Fires whenever Germanized has explicitly changed the language.

  1. $lang string The new language code.
  2. $wc_gzd_original_lang string The old language code.
add_action( "woocommerce_gzd_wpml_switched_language", function( $lang, $wc_gzd_original_lang ) {
    // Do something
        
}, 10, 2 );

woocommerce_gzd_wpml_switch_language Action

WPML language switch. Fires whenever Germanized was asked to programatically change the language.

  1. $lang string The new language code.
  2. $wc_gzd_original_lang string The old language code.
add_action( "woocommerce_gzd_wpml_switch_language", function( $lang, $wc_gzd_original_lang ) {
    // Do something
        
}, 10, 2 );

woocommerce_gzd_et_builder_legacy_checkout_needs_hook_removal Filter

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

woocommerce_gzd_refresh_unit_price_on_price_change Filter

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

woocommerce_gzd_maybe_flush_cache Action

Flush cache action. Trigger the flush cache action to indicate that Germanized wants to flush the cache.

  1. $type string Cache type e.g. db.
  2. $cache_args array Additional arguments.
add_action( "woocommerce_gzd_maybe_flush_cache", function( $type, $cache_args ) {
    // Do something
        
}, 10, 2 );

woocommerce_gzd_order_item_product_deposit_packaging_type_title Filter

Filter to adjust the deposit packaging type title for an order item.

  1. $title string The title.
  2. $order_item \WC_GZD_Order_Item_Product The order item product object.
add_filter( "woocommerce_gzd_order_item_product_deposit_packaging_type_title", function( $title, $order_item ) {
    // Do something
    return $title;    
}, 10, 2 );

woocommerce_gzd_order_item_product_units_html Filter

Filter to adjust the product units HTML output.

  1. $html string The HTML output.
  2. $order_item \WC_GZD_Order_Item_Product The order item product object.
add_filter( "woocommerce_gzd_order_item_product_units_html", function( $html, $order_item ) {
    // Do something
    return $html;    
}, 10, 2 );

woocommerce_gzd_order_item_quantity Filter

Determines the quantity used to calculate the item total used for unit price (re-) calculation for an order item.

  1. $quantity float The item quantity.
  2. $gzd_order_item \WC_GZD_Order_Item_Product Germanized order item instance.
  3. $order_item \WC_Order_Item_Product The order item instance.
add_filter( "woocommerce_gzd_order_item_quantity", function( $quantity, $gzd_order_item, $order_item ) {
    // Do something
    return $quantity;    
}, 10, 3 );

woocommerce_gzd_recalculate_order_item_unit_price Action

Order item unit price recalculation This action fires before recalculating unit price for a certain order item (e.g. when taxes are recalculated).

  1. $order_item \WC_Order_Item_Product
  2. $gzd_order_item \WC_GZD_Order_Item_Product
add_action( "woocommerce_gzd_recalculate_order_item_unit_price", function( $order_item, $gzd_order_item ) {
    // Do something
        
}, 10, 2 );

woocommerce_gzd_get_nutrient_object Filter

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

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 );