• Germanized
  • Hooks

Germanized Core

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_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_status_{$status} Action

Admin status screen. Executes for a default status page.

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

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

woocommerce_gzd_voucher_includes_shipping_costs Filter

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

woocommerce_gzd_voucher_cart_allow_fee_reduction Filter

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

woocommerce_gzd_voucher_name Filter

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

woocommerce_gzd_voucher Filter

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

woocommerce_gzd_order_coupon_tax_display_mode Filter

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

woocommerce_gzd_coupon_is_voucher Filter

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

woocommerce_gzd_order_item_coupon_is_voucher Filter

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

woocommerce_gzd_get_checkout_value Filter

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

woocommerce_gzd_checkout_checkbox_is_checked Filter

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

woocommerce_gzd_checkout_checkbox_is_visible Filter

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

woocommerce_gzd_photovoltaic_systems_remove_zero_tax_class_for_non_exemptions Filter

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

woocommerce_gzd_default_photovoltaic_systems_non_exemption_tax_class Filter

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

woocommerce_gzd_photovoltaic_systems_price_excludes_taxes_for_non_exemption Filter

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

woocommerce_gzd_disable_de_checkout_state_select Filter

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

woocommerce_gzd_checkout_is_valid_billing_street_number Filter

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

woocommerce_gzd_checkout_invalid_billing_street_number_error_message Filter

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

woocommerce_gzd_parcel_delivery_order_opted_in Action

Parcel delivery notification. Execute whenever the parcel delivery notification data is stored for a certain order.

  1. $order_id int The order id.
  2. $selected bool True if the checkbox was checked. False otherwise.
add_action( "woocommerce_gzd_parcel_delivery_order_opted_in", function( $order_id, $selected ) {
    // Do something
        
}, 10, 2 );

woocommerce_gzd_photovoltaic_systems_opted_in Action

Customer has opted in to the photovoltaic systems‘ checkbox. Execute whenever a customer has opted in to the photovoltaic systems‘ checkbox.

  1. $order_id int The order id.
add_action( "woocommerce_gzd_photovoltaic_systems_opted_in", function( $order_id ) {
    // Do something
        
}, 10, 1 );

woocommerce_gzd_checkout_store_checkbox_data Action

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

woocommerce_gzd_enable_force_pay_order Filter

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

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

woocommerce_gzd_exclude_from_force_free_shipping Filter

Filter to exclude certain shipping rates from being hidden as soon as free shipping option is available.

  1. $is_excluded bool Whether the rate is excluded or not.
  2. $instance string The shipping rate instance.
  3. $rate \WC_Shipping_Rate The shipping rate.
add_filter( "woocommerce_gzd_exclude_from_force_free_shipping", function( $is_excluded, $instance, $rate ) {
    // Do something
    return $is_excluded;    
}, 10, 3 );

woocommerce_gzd_show_order_pay_now_button Filter

Filters whether to show the pay now button for a certain order. „`php function ex_show_order_button( $show, $order_id ) { if ( $order = wc_get_order( $order_id ) { // Check the order and decide whether to enable or disable button return false; } return $show; } add_filter( ‚woocommerce_gzd_show_order_pay_now_button‘, ‚ex_show_order_button‘, 10, 2 ); „`

  1. $enabled bool Whether to enable the button or not.
  2. $order_id int The order id.
add_filter( "woocommerce_gzd_show_order_pay_now_button", function( $enabled, $order_id ) {
    // Do something
    return $enabled;    
}, 10, 2 );