• Germanized
  • Hooks

Germanized Core

woocommerce_gzd_is_order_confirmation_email Filter

Filters whether a certain email id equals the order confirmation email.

  1. $is_confirmation bool Whether the `$id` matches the order confirmation or not.
  2. $id string The email id.
add_filter( "woocommerce_gzd_is_order_confirmation_email", function( $is_confirmation, $id ) {
    // Do something
    return $is_confirmation;    
}, 10, 2 );

woocommerce_gzd_before_set_email_cart_item_filters Action

Before place email cart item filters. This hook fires before Germanized places certain cart item filters to make sure that product-related info (e.g. delivery time, unit price etc.) is shown within email tables.

  1. $this \WC_GZD_Emails The email helper class.
  2. $current \WC_Email The current email object.
  3. $sent_to_admin bool Whether this mail is being sent to admin or not.
add_action( "woocommerce_gzd_before_set_email_cart_item_filters", function( $this, $current, $sent_to_admin ) {
    // Do something
        
}, 10, 3 );

woocommerce_gzd_after_set_email_cart_item_filters Action

After place email cart item filters. This hook fires after Germanized placed certain cart item filters.

  1. $this \WC_GZD_Emails The email helper class.
  2. $current \WC_Email The current email object.
  3. $sent_to_admin bool Whether this mail is being sent to admin or not.
add_action( "woocommerce_gzd_after_set_email_cart_item_filters", function( $this, $current, $sent_to_admin ) {
    // Do something
        
}, 10, 3 );

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_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_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_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_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_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_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_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_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_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_afghanistan_is_valid_base_country Filter

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

woocommerce_gzd_shipment_admin_provider_list Filter

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

woocommerce_gzd_status_{$status} Action

Admin status screen. Executes for a default status page.

woocommerce_gzd_enable_notices Filter

Filter to enable or disable admin notices in WP-Admin.

  1. $enabled bool Whether notices are enabled or disabled.
add_filter( "woocommerce_gzd_enable_notices", function( $enabled ) {
    // Do something
    return $enabled;    
}, 10, 1 );

woocommerce_gzd_admin_notes Filter

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

woocommerce_gzd_food_deposit_settings Filter

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

woocommerce_gzd_food_settings Filter

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

woocommerce_gzd_admin_settings_styles Action

This action indicates that the admin settings styles are enqueued.

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

woocommerce_gzd_admin_settings_scripts Action

This action indicates that the admin settings scripts are enqueued.

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

woocommerce_gzd_admin_settings_tabs Filter

Filter to register or remove certain setting tabs from the Germanized settings screen. Make sure that your class is loaded before adding it to the tabs array.

  1. $tabs array Array containing key => value pairs of tab name and class name.
add_filter( "woocommerce_gzd_admin_settings_tabs", function( $tabs ) {
    // Do something
    return $tabs;    
}, 10, 1 );

woocommerce_gzd_admin_settings_before_{$current_tab_name} Action

Before admin tab settings output. Executes right before setting output for a specific admin setting tab `$tab_name` e.g. shopmarks.

  1. $param string

woocommerce_gzd_admin_settings_before_{$current_tab_name}_{$current_section} Action

Before admin tab section settings output. Executes right before setting output for a specific admin setting tab `$tab_name` e.g. shopmarks. `$current_section` refers to the current section e.g. product_widgets.

  1. $settings array[] The settings array.

woocommerce_gzd_admin_settings_after_{$current_tab_name} Action

After admin tab settings output. Executes right after setting output for a specific admin setting tab `$tab_name` e.g. shopmarks.

  1. $settings array[] The settings array.

woocommerce_gzd_admin_settings_after_{$current_tab_name}_{$current_section} Action

After admin tab section settings output. Executes right after setting output for a specific admin setting tab `$tab_name` e.g. shopmarks. `$current_section` refers to the current section e.g. product_widgets.

  1. $settings array[] The settings array.

woocommerce_gzd_settings_section_before_checkbox_options_{$checkbox_id} Action

Before output admin checkbox settings. Fires before a checkbox admin settings screen is rendered.

  1. $checkbox \WC_GZD_Legal_Checkbox The checkbox instance.

woocommerce_gzd_settings_section_after_checkbox_options_{$checkbox_id} Action

After output admin checkbox settings. Fires after a checkbox admin settings screen is rendered.

  1. $checkbox \WC_GZD_Legal_Checkbox The checkbox instance.