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_gzd_legal_checkboxes_option_keys Filter
Filters legal checkbox default option keys.
$args
array Option keys.
add_filter( "woocommerce_gzd_legal_checkboxes_option_keys", function( $args ) { // Do something return $args; }, 10, 1 );
woocommerce_gzd_db_prices_by_display_prices Filter
$param_1
array$param_2
string$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 );
woocommerce_gzd_differential_taxation_cart_item_mark Filter
Differential taxation mark. Adjust the default differential taxation mark.
$html
string The differential mark e.g. `*`.
add_filter( "woocommerce_gzd_differential_taxation_cart_item_mark", function( $html ) { // Do something return $html; }, 10, 1 );
woocommerce_gzd_recalculate_unit_price_cart Filter
$param_1
bool$param_2
string$param_3
string
add_filter( "woocommerce_gzd_recalculate_unit_price_cart", function( $param_1, $param_2, $param_3 ) { // Do something return $param_1; }, 10, 3 );
woocommerce_gzd_unit_price_cart_quantity Filter
$param_1
string$param_2
string$param_3
string
add_filter( "woocommerce_gzd_unit_price_cart_quantity", function( $param_1, $param_2, $param_3 ) { // Do something return $param_1; }, 10, 3 );
woocommerce_gzd_cart_product_deposit_packaging_type_html Filter
Filter that allows adjusting the product deposit packaging type HTML content before outputting within cart.
$packaging_title_html
string The HTML content.$cart_item
array The cart item data.$cart_item_key
string The cart item key.
add_filter( "woocommerce_gzd_cart_product_deposit_packaging_type_html", function( $packaging_title_html, $cart_item, $cart_item_key ) { // Do something return $packaging_title_html; }, 10, 3 );
woocommerce_gzd_cart_product_units_html Filter
Filter that allows adjusting the product units HTML content before outputting within cart.
$product_units_html
string The HTML content.$cart_item
array The cart item data.$cart_item_key
string The cart item key.
add_filter( "woocommerce_gzd_cart_product_units_html", function( $product_units_html, $cart_item, $cart_item_key ) { // Do something return $product_units_html; }, 10, 3 );
woocommerce_gzd_cart_applies_for_photovoltaic_system_vat_exemption Filter
$param
string
add_filter( "woocommerce_gzd_cart_applies_for_photovoltaic_system_vat_exemption", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_photovoltaic_systems_vat_exemption_legal_data Filter
$param_1
string$param_2
string
add_filter( "woocommerce_gzd_photovoltaic_systems_vat_exemption_legal_data", function( $param_1, $param_2 ) { // Do something return $param_1; }, 10, 2 );
woocommerce_gzd_cart_customer_applies_for_photovoltaic_system_vat_exemption Filter
$param
string
add_filter( "woocommerce_gzd_cart_customer_applies_for_photovoltaic_system_vat_exemption", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_order_contains_photovoltaic_system Filter
Determines whether a photovoltaic system exists in the current order.
$has_photovoltaic_system
bool Whether the order includes a photovoltaic system or not.$items
array The order items.
add_filter( "woocommerce_gzd_order_contains_photovoltaic_system", function( $has_photovoltaic_system, $items ) { // Do something return $has_photovoltaic_system; }, 10, 2 );
woocommerce_gzd_cart_contains_photovoltaic_system Filter
Determines whether a photovoltaic system exists in the current cart.
$has_photovoltaic_system
bool Whether the cart includes a photovoltaic system or not.$items
array The cart items.
add_filter( "woocommerce_gzd_cart_contains_photovoltaic_system", function( $has_photovoltaic_system, $items ) { // Do something return $has_photovoltaic_system; }, 10, 2 );
woocommerce_gzd_order_needs_age_verification Filter
Filter to determine whether an order needs age verification or not.
$needs_verification
bool Whether the order needs age verification or not.$order_id
int The order id
add_filter( "woocommerce_gzd_order_needs_age_verification", function( $needs_verification, $order_id ) { // Do something return $needs_verification; }, 10, 2 );
woocommerce_gzd_cart_needs_age_verification Filter
Determines whether a cart needs age verification or not. This filter might adjust whether cart items need age verification or not.
$needs_age_verification
bool Whether items need age verification or not.$items
array The cart items.
add_filter( "woocommerce_gzd_cart_needs_age_verification", function( $needs_age_verification, $items ) { // Do something return $needs_age_verification; }, 10, 2 );
woocommerce_gzd_order_age_verification_min_age Filter
Returns the minimum age for certain order items. This filter might be used to adjust the minimum age for a certain order used for the age verification.
$min_age
int The minimum age required to buy.$items
array The order items.
add_filter( "woocommerce_gzd_order_age_verification_min_age", function( $min_age, $items ) { // Do something return $min_age; }, 10, 2 );
woocommerce_gzd_cart_age_verification_min_age Filter
Returns the minimum age for a cart. This filter might be used to adjust the minimum age for a certain cart used for the age verification.
$min_age
int The minimum age required to checkout.$items
array The cart items.
add_filter( "woocommerce_gzd_cart_age_verification_min_age", function( $min_age, $items ) { // Do something return $min_age; }, 10, 2 );
woocommerce_gzd_cart_main_service_tax_class Filter
$param
string
add_filter( "woocommerce_gzd_cart_main_service_tax_class", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_cart_taxes Filter
Filter to adjust the cart tax items.
$tax_array
array The array containing tax amounts.$cart
\WC_Cart The cart instance.$include_shipping_taxes
bool Whether to include shipping taxes or not.
add_filter( "woocommerce_gzd_cart_taxes", function( $tax_array, $cart, $include_shipping_taxes ) { // Do something return $tax_array; }, 10, 3 );
woocommerce_gzd_legal_digital_email_text Filter
Filter to adjust the legal email text for digital products.
$text
string The HTML output.
add_filter( "woocommerce_gzd_legal_digital_email_text", function( $text ) { // Do something return $text; }, 10, 1 );
woocommerce_gzd_legal_service_email_text Filter
Filter to adjust the legal email text for service products.
$text
string The HTML output.
add_filter( "woocommerce_gzd_legal_service_email_text", function( $text ) { // Do something return $text; }, 10, 1 );
woocommerce_gzd_allow_disabling_checkout_adjustments Filter
$param
bool
add_filter( "woocommerce_gzd_allow_disabling_checkout_adjustments", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_prevent_checkout_order_review_hook_reset Filter
$param
bool
add_filter( "woocommerce_gzd_prevent_checkout_order_review_hook_reset", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_disabled_checkout_adjustments Action
add_action( "woocommerce_gzd_disabled_checkout_adjustments", function( ) { // Do something }, 10 );
woocommerce_gzd_get_product_variation_{$prop} Filter
Filter to adjust a certain product variation property e.g. unit_price. The dynamic portion of the hook name, `$prop` refers to the product property e.g. unit_price.
$value
mixed The property value.$gzd_product
\WC_GZD_Product_Variation The GZD product instance.$product
\WC_Product_Variation The product instance.$context
string The context
woocommerce_gzd_get_product_variation_unit Filter
This filter is documented in includes/class-wc-gzd-product-variation.php
$param_1
string$param_2
string$param_3
string
add_filter( "woocommerce_gzd_get_product_variation_unit", function( $param_1, $param_2, $param_3 ) { // Do something return $param_1; }, 10, 3 );
woocommerce_gzd_product_import_formatting_callbacks Filter
Filter that allows adjusting product import formatting callbacks for Germanized product data.
$callbacks
array Key => value array containing meta keys and callback functions.
add_filter( "woocommerce_gzd_product_import_formatting_callbacks", function( $callbacks ) { // Do something return $callbacks; }, 10, 1 );
woocommerce_gzd_product_import_column_{$column_name} Filter
Filter that allows adjusting product import data for a certain `$column_name`.
$product
\WC_Product The product object$value
mixed The import value.
woocommerce_gzd_hide_delivery_time_for_grouped_product Filter
Filter that decides whether to hide delivery time for grouped products or not.
$hide
bool Whether to hide delivery time or not.$product
\WC_GZD_Product_Grouped The product object.
add_filter( "woocommerce_gzd_hide_delivery_time_for_grouped_product", function( $hide, $product ) { // Do something return $hide; }, 10, 2 );
woocommerce_gzd_grouped_unit_price_html Filter
Filter to adjust grouped product unit price. In case of Woo version > 3.0.0 this filter can contain the formatted sale price too.
$price
string The price.$product
\WC_GZD_Product_Grouped The product object.
add_filter( "woocommerce_gzd_grouped_unit_price_html", function( $price, $product ) { // Do something return $price; }, 10, 2 );
woocommerce_gzd_unit_price_html Filter
Filter to adjust the product’s unit price HTML output.
$html
string The unit price as HTML.$product
\WC_GZD_Product The product object.$param_3
string
add_filter( "woocommerce_gzd_unit_price_html", function( $html, $product, $param_3 ) { // Do something return $html; }, 10, 3 );
woocommerce_gzd_nutrient_reference_values Filter
$param
array
add_filter( "woocommerce_gzd_nutrient_reference_values", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_nutri_score_values Filter
$param
array
add_filter( "woocommerce_gzd_nutri_score_values", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_nutrient_types Filter
$param
array
add_filter( "woocommerce_gzd_nutrient_types", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_nutrient_rounding_rules Filter
$param
array
add_filter( "woocommerce_gzd_nutrient_rounding_rules", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_direct_debit_icon Filter
Filter to allow adding an icon to direct debit gateway.
$icon_url
string The icon URL.
add_filter( "woocommerce_gzd_direct_debit_icon", function( $icon_url ) { // Do something return $icon_url; }, 10, 1 );
woocommerce_gzd_direct_debit_export_order_statuses Filter
Filter to adjust direct debit export valid order statuses.
$order_statuses
array Valid order statuses to be exported.
add_filter( "woocommerce_gzd_direct_debit_export_order_statuses", function( $order_statuses ) { // Do something return $order_statuses; }, 10, 1 );