• Germanized
  • Hooks

Germanized Core

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_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_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_edit_product_food_panel Action

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

woocommerce_gzd_save_display_unit_price_data Filter

Filter to adjust unit price data before saving a product.

  1. $data array The unit price data.
  2. $product \WC_Product The product object.
add_filter( "woocommerce_gzd_save_display_unit_price_data", function( $data, $product ) {
    // Do something
    return $data;    
}, 10, 2 );

woocommerce_gzd_product_saveable_data Filter

Filter that allows adjusting Germanized product data before saving.

  1. $data array Product data to be saved.
  2. $product \WC_Product The product object.
add_filter( "woocommerce_gzd_product_saveable_data", function( $data, $product ) {
    // Do something
    return $data;    
}, 10, 2 );

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

Filter to include certain packages or plugins while checking for outdated templates.

  1. $template_data array Template data in key => value pairs.
add_filter( "woocommerce_gzd_template_check", function( $template_data ) {
    // Do something
    return $template_data;    
}, 10, 1 );

woocommerce_gzd_sync_wp_privacy_page Filter

This filter is documented in includes/admin/class-wc-gzd-admin.php

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

woocommerce_gzd_after_resend_order_confirmation_email Action

Admin manual resend order confirmation email. This hook fires after a manual resend of the order confirmation email has been triggered.

  1. $order \WC_Order The order for which the confirmation email is sent.
  2. $mail_id string The email id (customer_processing_order).
add_action( "woocommerce_gzd_after_resend_order_confirmation_email", function( $order, $mail_id ) {
    // Do something
        
}, 10, 2 );

woocommerce_gzd_admin_assets Action

After admin assets. This hook fires after Germanized has loaded and enqueued it’s admin assets.

  1. $this \WC_GZD_Admin The admin class.
add_action( "woocommerce_gzd_admin_assets", function( $this ) {
    // Do something
        
}, 10, 1 );

woocommerce_gzd_deleted_text_options Action

After text options deletion. This hook fires after Germanized has deleted and re-installed it’s text options.

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

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

  1. $param_1 string
  2. $param_2 string

woocommerce_gzd_get_product_{$prop} Filter

Filter to adjust a certain product 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 The GZD product instance.
  3. $product \WC_Product The product instance.
  4. $context string

woocommerce_gzd_get_product_nutrients Filter

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

woocommerce_gzd_get_product_nutrients_html Filter

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

woocommerce_gzd_get_product_allergenic Filter

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

woocommerce_gzd_get_product_formatted_allergenic Filter

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

woocommerce_gzd_product_formatted_nutri_score Filter

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

woocommerce_gzd_product_net_filling_quantity_unit Filter

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

woocommerce_gzd_product_formatted_net_filling_quantity Filter

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

woocommerce_gzd_drain_weight_unit Filter

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

woocommerce_gzd_product_formatted_drain_weight Filter

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

woocommerce_gzd_product_includes_alcohol Filter

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

woocommerce_gzd_product_deposit_packaging_type Filter

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

woocommerce_gzd_product_deposit_packaging_type_title Filter

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

woocommerce_gzd_shipping_country_skips_deposit Filter

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

woocommerce_gzd_product_deposit_amount Filter

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

woocommerce_gzd_deposit_amount_including_tax Filter

Filter to adjust the deposit amount including tax.

  1. $deposit_amount string The calculated deposit amount.
  2. $price string The price passed.
  3. $qty int The quantity.
  4. $product \WC_GZD_Product The product object.
add_filter( "woocommerce_gzd_deposit_amount_including_tax", function( $deposit_amount, $price, $qty, $product ) {
    // Do something
    return $deposit_amount;    
}, 10, 4 );

woocommerce_gzd_deposit_amount_excluding_tax Filter

Filter to adjust the deposit amount excluding tax.

  1. $deposit_amount string The calculated deposit amount.
  2. $price string The price passed.
  3. $qty int The quantity.
  4. $product \WC_GZD_Product The product object.
add_filter( "woocommerce_gzd_deposit_amount_excluding_tax", function( $deposit_amount, $price, $qty, $product ) {
    // Do something
    return $deposit_amount;    
}, 10, 4 );

woocommerce_gzd_product_deposit_amount_per_unit Filter

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

woocommerce_gzd_product_has_deposit Filter

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