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_validate_street_number Filter
$param_1
bool$param_2
string
add_filter( "woocommerce_gzd_checkout_validate_street_number", function( $param_1, $param_2 ) { // Do something return $param_1; }, 10, 2 );
woocommerce_gzd_checkout_validate_billing_street_number Filter
$param
bool
add_filter( "woocommerce_gzd_checkout_validate_billing_street_number", 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_checkout_is_valid_street_number Filter
$param_1
string$param_2
string
add_filter( "woocommerce_gzd_checkout_is_valid_street_number", function( $param_1, $param_2 ) { // Do something return $param_1; }, 10, 2 );
woocommerce_gzd_checkout_invalid_street_number_error_message Filter
$param_1
string$param_2
string
add_filter( "woocommerce_gzd_checkout_invalid_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 );
woocommerce_gzd_add_force_pay_order_parameter Filter
Filter whether to add the `force_pay_order` parameter to the URL to allow automatically redirecting the customer to the chosen payment provider after clicking the link.
$enable
bool Set to `false` to disable.$order_id
int The order id.
add_filter( "woocommerce_gzd_add_force_pay_order_parameter", function( $enable, $order_id ) { // Do something return $enable; }, 10, 2 );
woocommerce_gzd_custom_checkout_admin_fields Filter
Filter to adjust custom checkout-related admin fields. This filter may be used to output certain checkout fields within admin order screen.
$custom_fields
array Array of fields.$checkout
\WC_GZD_Checkout The checkout instance.
add_filter( "woocommerce_gzd_custom_checkout_admin_fields", function( $custom_fields, $checkout ) { // Do something return $custom_fields; }, 10, 2 );
woocommerce_gzd_custom_checkout_fields Filter
Filter to adjust custom checkout-related frontend fields. This filter may be used to output certain checkout fields within the checkout.
$custom_fields
array Array of fields.$checkout
\WC_GZD_Checkout The checkout instance.
add_filter( "woocommerce_gzd_custom_checkout_fields", function( $custom_fields, $checkout ) { // Do something return $custom_fields; }, 10, 2 );
woocommerce_gzd_disable_custom_shipping_method_tax_calculation Filter
$param_1
bool$param_2
string
add_filter( "woocommerce_gzd_disable_custom_shipping_method_tax_calculation", function( $param_1, $param_2 ) { // Do something return $param_1; }, 10, 2 );
woocommerce_gzd_force_additional_costs_taxation Filter
Calculate split taxes if the cart contains more than one tax rate. Tax rounding (e.g. for subtotal) is handled by WC_Cart_Totals::get_shipping_from_cart
$param
bool
add_filter( "woocommerce_gzd_force_additional_costs_taxation", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_force_fee_tax_calculation Filter
$param_1
bool$param_2
string
add_filter( "woocommerce_gzd_force_fee_tax_calculation", function( $param_1, $param_2 ) { // Do something return $param_1; }, 10, 2 );
woocommerce_gzd_skip_fee_split_tax_calculation Filter
$param_1
bool$param_2
string
add_filter( "woocommerce_gzd_skip_fee_split_tax_calculation", function( $param_1, $param_2 ) { // Do something return $param_1; }, 10, 2 );
woocommerce_gzd_fee_costs_include_tax Filter
$param_1
string$param_2
string
add_filter( "woocommerce_gzd_fee_costs_include_tax", function( $param_1, $param_2 ) { // Do something return $param_1; }, 10, 2 );
woocommerce_gzd_custom_{$key}_field_value Filter
$param
string
woocommerce_germanized_before_load Action
Before startup. This hook fires right before Germanized includes relevant files for startup.
add_action( "woocommerce_germanized_before_load", function( ) { // Do something }, 10 );
woocommerce_germanized_loaded Action
After startup. This hook fires right after all relevant files for Germanized has been loaded.
add_action( "woocommerce_germanized_loaded", function( ) { // Do something }, 10 );
woocommerce_germanized_init Action
Initialized Germanized This hook fires after Germanized has been initialized e.g. textdomain has been loaded and relevant have been placed.
add_action( "woocommerce_germanized_init", function( ) { // Do something }, 10 );
woocommerce_gzd_template_path Filter
Filter the default Germanized template path folder. “`php function ex_filter_template_path( $path ) { return ‘woocommerce-germanized-test/’; } add_filter( ‘woocommerce_gzd_template_path’, ‘ex_filter_template_path’, 10, 1 ); “`
$path
string The relative path within your theme directory.
add_filter( "woocommerce_gzd_template_path", function( $path ) { // Do something return $path; }, 10, 1 );
woocommerce_gzd_compatibilities Filter
Filter compatibility classes. This filter allows third party developers to register compatibility scripts for certain plugins. Make sure to include your class accordingly before adding your script.
$param
array
add_filter( "woocommerce_gzd_compatibilities", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_theme_compatibilities Filter
Filter theme compatibility classes. This filter allows third party developers to register compatibility scripts for certain themes. Make sure to include your class accordingly before adding your script.
$param
array
add_filter( "woocommerce_gzd_theme_compatibilities", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_templates_requiring_variation_script Filter
$param
array
add_filter( "woocommerce_gzd_templates_requiring_variation_script", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_template_name Filter
Filters the template name.
$template_name
string The template name e.g. checkboxes/default.php
add_filter( "woocommerce_gzd_template_name", function( $template_name ) { // Do something return $template_name; }, 10, 1 );
woocommerce_gzd_default_plugin_template Filter
Filter the default plugin template file. This file is being loaded as a default template if no theme template was found.
$param_1
string$param_2
string
add_filter( "woocommerce_gzd_default_plugin_template", function( $param_1, $param_2 ) { // Do something return $param_1; }, 10, 2 );
woocommerce_germanized_filter_template Filter
Filters the actual loaded template. This filter allows filtering the located template path (whether theme or plugin).
$param_1
string$param_2
string$param_3
string
add_filter( "woocommerce_germanized_filter_template", function( $param_1, $param_2, $param_3 ) { // Do something return $param_1; }, 10, 3 );
woocommerce_gzd_important_templates Filter
Filters critical template which should be prevented from overriding.
$templates
array Array containing the template names.
add_filter( "woocommerce_gzd_important_templates", function( $templates ) { // Do something return $templates; }, 10, 1 );
woocommerce_gzd_force_de_language Filter
$param
string
add_filter( "woocommerce_gzd_force_de_language", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_registered_scripts Action
Register frontend scripts and styles. This hook executes right after Germanized has registered and enqueued relevant scripts and styles for the frontend.
add_action( "woocommerce_gzd_registered_scripts", function( ) { // Do something }, 10 );
woocommerce_gzd_deposit_packaging_type_font_size_css Filter
$param
string
add_filter( "woocommerce_gzd_deposit_packaging_type_font_size_css", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_add_to_cart_variation_params Filter
$param
array
add_filter( "woocommerce_gzd_add_to_cart_variation_params", function( $param ) { // Do something return $param; }, 10, 1 );
wc_gzd_revocation_params Filter
$param
array
add_filter( "wc_gzd_revocation_params", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_unit_price_observer_price_selectors Filter
Allow multiple price selectors to be observed
$param
array
add_filter( "woocommerce_gzd_unit_price_observer_price_selectors", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_unit_price_observer_params Filter
Filters script localization paramaters for the `wc-gzd-unit-price-observer` script.
$params
array Key => value array containing parameter name and value.
add_filter( "woocommerce_gzd_unit_price_observer_params", function( $params ) { // Do something return $params; }, 10, 1 );
wc_gzd_force_pay_order_params Filter
$param
array
add_filter( "wc_gzd_force_pay_order_params", function( $param ) { // Do something return $param; }, 10, 1 );
wc_gzd_cart_voucher_params Filter
$param
string
add_filter( "wc_gzd_cart_voucher_params", function( $param ) { // Do something return $param; }, 10, 1 );
wc_gzd_checkout_params Filter
$param
array
add_filter( "wc_gzd_checkout_params", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_localized_scripts Action
Localized scripts. This hook fires after Germanized has localized it’s scripts.
add_action( "woocommerce_gzd_localized_scripts", function( ) { // Do something }, 10 );
woocommerce_germanized_email_template_hook Filter
Filters email templates.
$core_file
string The core template file.$template
string The template name.$template_base
string The template base folder.
add_filter( "woocommerce_germanized_email_template_hook", function( $core_file, $template, $template_base ) { // Do something return $core_file; }, 10, 3 );
woocommerce_gzd_container_loaded Action
add_action( "woocommerce_gzd_container_loaded", function( ) { // Do something }, 10 );
woocommerce_gzd_shopmark_single_product_defaults Filter
Filter to adjust default shopmark configuration for the single product page.
$defaults
array Array containing the default configuration.
add_filter( "woocommerce_gzd_shopmark_single_product_defaults", function( $defaults ) { // Do something return $defaults; }, 10, 1 );
woocommerce_gzd_shopmark_single_product_grouped_defaults Filter
Filter to adjust default shopmark configuration for the single product page specifically for grouped products.
$defaults
array Array containing the default configuration.
add_filter( "woocommerce_gzd_shopmark_single_product_grouped_defaults", function( $defaults ) { // Do something return $defaults; }, 10, 1 );