woocommerce_gzd_admin_settings Filter
General filter to adjust the settings for setting tabs.
$settings
array Array containing settings data.$tab_name
string The name of the tab e.g. checkboxes$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.
$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.
$settings
array Array containing the settings to be saved.$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.
$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.
$settings
array Array containing the settings to be saved.$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.
$settings
array Array containing the settings to be saved.
woocommerce_gzd_admin_new_legal_checkbox_link Filter
Filter to adjust new legal checkbox link for free version.
$link
string Link to vendidero website.
add_filter( "woocommerce_gzd_admin_new_legal_checkbox_link", function( $link ) { // Do something return $link; }, 10, 1 );
woocommerce_gzd_admin_legal_checkbox Filter
Adjust the checkbox within admin edit view.
$checkbox
\WC_GZD_Legal_Checkbox The checkbox instance.$checkbox_id
int The checkbox id.
add_filter( "woocommerce_gzd_admin_legal_checkbox", function( $checkbox, $checkbox_id ) { // Do something return $checkbox; }, 10, 2 );
woocommerce_gzd_before_save_legal_checkbox Action
Before saving a legal checkbox. This hook fires before a certain legal checkbox saves it’s settings.
$checkbox
\WC_GZD_Legal_Checkbox The checkbox to be saved.
add_action( "woocommerce_gzd_before_save_legal_checkbox", function( $checkbox ) { // Do something }, 10, 1 );
woocommerce_gzd_after_save_legal_checkbox Action
After saving a legal checkbox This hook fires after a certain legal checkbox saves it’s settings.
$checkbox
\WC_GZD_Legal_Checkbox The checkbox containing the new settings.
add_action( "woocommerce_gzd_after_save_legal_checkbox", function( $checkbox ) { // Do something }, 10, 1 );
woocommerce_gzd_before_admin_legal_checkboxes Action
Before outputting admin checkboxes. This hook fires before legal checkboxes admin list view is being output.
add_action( "woocommerce_gzd_before_admin_legal_checkboxes", function( ) { // Do something }, 10 );
woocommerce_gzd_food_deposit_settings Filter
$param
array
add_filter( "woocommerce_gzd_food_deposit_settings", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_food_settings Filter
$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.
$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
$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
$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_legal_pages Action
After legal pages section. Fires after the legal pages section within the Germanized status page.
add_action( "woocommerce_gzd_status_after_legal_pages", 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
$param_1
string$param_2
string$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.
$data
array The unit price data.$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.
$data
array Product data to be saved.$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.
$tax_status
string The tax status, e.g. none or shipping.$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
$param_1
bool$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
$param_1
string$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
$param_1
bool$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
$param_1
string$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
$param_1
string$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
$param_1
string$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
$param_1
string$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
$param_1
string$param_2
string$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
$param_1
string$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
$param_1
string$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
$param_1
string$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
$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
$param_1
string$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
$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
$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
$param_1
string$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
$param_1
string$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.
$order_id
int The order id.$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.
$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
$param_1
string$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
$param_1
bool$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.
$is_excluded
bool Whether the rate is excluded or not.$instance
string The shipping rate instance.$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 ); „`
$enabled
bool Whether to enable the button or not.$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 );