• Germanized
  • Hooks

Germanized Core

woocommerce_gzd_product_differential_taxed_tax_status Filter

Filter the tax status of a differential taxed product.

  1. $tax_status string The tax status, e.g. none or shipping.
  2. $product \WC_Product The product instance.
add_filter( "woocommerce_gzd_product_differential_taxed_tax_status", function( $tax_status, $product ) {
    // Do something
    return $tax_status;    
}, 10, 2 );

woocommerce_gzd_edit_product_variation_food_wrapper Action

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

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_admin_settings_tab_$postfix_breadcrumb Filter

Filter to adjust the breadcrumb items for a certain settings tab. The dynamic portion of the hook name, `$this->get_name()` refers to the tab name e.g. checkboxes.

  1. $breadcrumb array Array containing breadcrumb data.

woocommerce_gzd_admin_settings_tab_$postfix Filter

Filter to adjust the settings for a certain settings tab. The dynamic portion of the hook name, `$this->get_name()` refers to the tab name e.g. checkboxes.

  1. $settings array Array containing settings data.

woocommerce_gzd_admin_settings_tab_$postfix_{$section_id} Filter

Filter to adjust the settings for a certain section of a settings tab. The dynamic portion of the hook name, `$this->get_name()` refers to the tab name e.g. checkboxes. `$current_section` refers to the current section e.g. product_widget.

  1. $settings array Array containing settings data.

woocommerce_gzd_admin_settings Filter

General filter to adjust the settings for setting tabs.

  1. $settings array Array containing settings data.
  2. $tab_name string The name of the tab e.g. checkboxes
  3. $section_id string The section name e.g. product_widgets. Might be empty too.
add_filter( "woocommerce_gzd_admin_settings", function( $settings, $tab_name, $section_id ) {
    // Do something
    return $settings;    
}, 10, 3 );

woocommerce_gzd_admin_settings_before_wrapper_$postfix Action

Fires before settings for a certain tab are rendered. The dynamic portion of the hook name, $this->get_name(), refers to the current tab name e.g. checkboxes.

  1. $current_section string The current sub section of the tab.

woocommerce_gzd_admin_settings_before_save_$postfix Action

Fires before settings for a certain tab are saved. The dynamic portion of the hook name, `$this->get_name()`, refers to the current tab id e.g. checkboxes.

  1. $settings array Array containing the settings to be saved.
  2. $current_section string The current section.

woocommerce_gzd_admin_settings_before_save_$postfix_{$current_section} Action

Fires before settings for a certain section of a tab are saved. The dynamic portion of the hook name, `$this->get_name()` and `$current_section`, refer to the current tab id e.g. checkboxes and the current section name e.g. product_widgets.

  1. $settings array Array containing the settings to be saved.

woocommerce_gzd_admin_settings_after_save_$postfix Action

Fires after settings for a certain tab have been saved. The dynamic portion of the hook name, `$this->get_name()`, refers to the current tab id e.g. checkboxes.

  1. $settings array Array containing the settings to be saved.
  2. $current_section string The current section.

woocommerce_gzd_admin_settings_after_save_$postfix_{$current_section} Action

Fires after settings for a certain section of a tab are saved. The dynamic portion of the hook name, `$this->get_name()` and `$current_section`, refer to the current tab id e.g. checkboxes and the current section name e.g. product_widgets.

  1. $settings array Array containing the settings to be saved.

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_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.

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_status_after_germanized Action

After Germanized status page output. Fires after Germanized has rendered it’s status page.

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

woocommerce_gzd_status_after_vat Action

After VAT status. Fires after Germanized has rendered the VAT status section.

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

woocommerce_gzd_status_after_compatibility Action

After compatibility section. Fires after the compatibility section within the Germanized status page.

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

woocommerce_gzd_status_after_tools Action

After tools section. Fires after the tools section within the Germanized status page.

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

woocommerce_gzd_status_after_templates Action

After templates section. Fires after the templates section within the Germanized status page.

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

woocommerce_gzd_status_{$status} Action

Admin status screen. Executes for a default status page.

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

wc_gzd_frontend_hook_priority Filter

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

woocommerce_gzd_hook_priority_cache_duration Filter

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

woocommerce_gzd_order_button_payment_gateway_text Filter

Filter to adjust the forced order submit button text per gateway. By default Woo allows gateways to adjust the submit button text. This behaviour does not comply with the button solution – that is why Germanized adds the option-based static text by default.

  1. $button_text string The static button text from within the options.
  2. $gateway_id string The gateway id.
add_filter( "woocommerce_gzd_order_button_payment_gateway_text", function( $button_text, $gateway_id ) {
    // Do something
    return $button_text;    
}, 10, 2 );