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_show_product_review_authenticity_status Filter
$param_1
bool$param_2
string
add_filter( "woocommerce_gzd_show_product_review_authenticity_status", function( $param_1, $param_2 ) { // Do something return $param_1; }, 10, 2 );
woocommerce_gzd_show_product_rating_authenticity_status Filter
$param_1
string$param_2
string
add_filter( "woocommerce_gzd_show_product_rating_authenticity_status", function( $param_1, $param_2 ) { // Do something return $param_1; }, 10, 2 );
woocommerce_gzd_product_{$block_name}_block_price_xpath Filter
$param
string
woocommerce_gzd_product_{$block_name}_block_title_xpath Filter
$param
string
woocommerce_gzd_product_{$block_name}_block_rating_xpath Filter
$param
string
woocommerce_gzd_product_grid_block_price_xpath Filter
$param
string
add_filter( "woocommerce_gzd_product_grid_block_price_xpath", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_product_grid_block_title_xpath Filter
$param
string
add_filter( "woocommerce_gzd_product_grid_block_title_xpath", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_product_grid_block_rating_xpath Filter
$param
string
add_filter( "woocommerce_gzd_product_grid_block_rating_xpath", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_product_types_supporting_unit_prices Filter
$param
array
add_filter( "woocommerce_gzd_product_types_supporting_unit_prices", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_template_single_nutri_score Action
add_action( "woocommerce_gzd_template_single_nutri_score", function( ) { // Do something }, 10 );
woocommerce_gzd_template_loop_nutri_score Action
add_action( "woocommerce_gzd_template_loop_nutri_score", function( ) { // Do something }, 10 );
woocommerce_gzd_before_add_variation_options Action
$param_1
string$param_2
string$param_3
string
add_action( "woocommerce_gzd_before_add_variation_options", function( $param_1, $param_2, $param_3 ) { // Do something }, 10, 3 );
woocommerce_gzd_product_ingredients_heading Filter
$param
string
add_filter( "woocommerce_gzd_product_ingredients_heading", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_product_allergenic_heading Filter
$param
string
add_filter( "woocommerce_gzd_product_allergenic_heading", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_product_nutrients_heading Filter
$param
string
add_filter( "woocommerce_gzd_product_nutrients_heading", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_insert_order_submit_fallback Filter
$param
bool
add_filter( "woocommerce_gzd_insert_order_submit_fallback", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_show_pay_now_button Filter
Filter to allow disabling the pay now button.
$show
bool Whether to show or hide the button.$order_id
int The order id.
add_filter( "woocommerce_gzd_show_pay_now_button", function( $show, $order_id ) { // Do something return $show; }, 10, 2 );
woocommerce_gzd_forwarding_fee_checkout_text Filter
Filter to adjust the forwarding fee checkout notice.
$html
string The notice.
add_filter( "woocommerce_gzd_forwarding_fee_checkout_text", function( $html ) { // Do something return $html; }, 10, 1 );
woocommerce_germanized_digital_delivery_time_text Filter
Filter to adjust delivery time text for digital products.
$html
string The notice.$product
\WC_Product The product object.
add_filter( "woocommerce_germanized_digital_delivery_time_text", function( $html, $product ) { // Do something return $html; }, 10, 2 );
woocommerce_gzd_show_mini_cart_totals_taxes Filter
$param
bool
add_filter( "woocommerce_gzd_show_mini_cart_totals_taxes", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_show_mini_cart_totals_shipping_costs_notice Filter
$param
string
add_filter( "woocommerce_gzd_show_mini_cart_totals_shipping_costs_notice", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_show_mini_cart_totals_differential_taxation_notice Filter
$param
string
add_filter( "woocommerce_gzd_show_mini_cart_totals_differential_taxation_notice", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_disable_mini_cart_item_legal_details Filter
This filter serves to manually disable mini cart item legal details.
$disable
bool Whether to disable or not.
add_filter( "woocommerce_gzd_disable_mini_cart_item_legal_details", function( $disable ) { // Do something return $disable; }, 10, 1 );
woocommerce_gzd_template_add_price_html_suffixes_args Filter
In some cases (e.g. product widgets) Germanized has to add legal information as a suffix because no other filters exist. This filter serves to decide which info to append and in which order.
$args
array The data to be appended.$location
string The location e.g. product_widget.
add_filter( "woocommerce_gzd_template_add_price_html_suffixes_args", function( $args, $location ) { // Do something return $args; }, 10, 2 );
woocommerce_gzd_template_add_price_html_suffix Filter
Filter that allows adjusting the HTML suffix for product widgets.
$html
string The suffix.$args
array The data which was appended.$location
string The location.
add_filter( "woocommerce_gzd_template_add_price_html_suffix", function( $html, $args, $location ) { // Do something return $html; }, 10, 3 );
woocommerce_gzd_deposit_packaging_types Filter
$param
array
add_filter( "woocommerce_gzd_deposit_packaging_types", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_deposit_packaging_type_title Filter
$param_1
string$param_2
string
add_filter( "woocommerce_gzd_deposit_packaging_type_title", function( $param_1, $param_2 ) { // Do something return $param_1; }, 10, 2 );
woocommerce_gzd_enable_rating_authenticity_notices Filter
$param
string
add_filter( "woocommerce_gzd_enable_rating_authenticity_notices", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_small_business_show_total_vat_notice Filter
Filter to show incl. VAT for small business after order/cart total. This filter serves for shops which want to enable a incl. VAT notice for small businesses. Some institutions (e.g. Händlerbund) state that this is necessary. “`php function ex_enable_small_business_vat_notice() { return true; } add_filter( ‘woocommerce_gzd_small_business_show_total_vat_notice’, ‘ex_enable_small_business_vat_notice’, 10 ); “`
$enable
bool Whether to enable the notice or not.
add_filter( "woocommerce_gzd_small_business_show_total_vat_notice", function( $enable ) { // Do something return $enable; }, 10, 1 );
woocommerce_gzd_disable_wc_privacy_policy_checkbox Filter
Filter to turn on Woo default privacy checkbox in checkout. Germanized disables the default WooCommerce privacy checkbox to replace it with it’s own data privacy checkbox instead.
$enable
bool Set to `false` to re-enable Woo default privacy checkbox.
add_filter( "woocommerce_gzd_disable_wc_privacy_policy_checkbox", function( $enable ) { // Do something return $enable; }, 10, 1 );
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_privacy_erase_order_personal_metadata Filter
Filter to adjust personal order data to be anonymized while removing personal data from orders.
$meta_keys
array Meta keys to be anonymized.$order
\WC_Order The order object.
add_filter( "woocommerce_gzd_privacy_erase_order_personal_metadata", function( $meta_keys, $order ) { // Do something return $meta_keys; }, 10, 2 );
woocommerce_gzd_privacy_erase_customer_personal_metadata Filter
Filter to adjust personal customer data to be anonymized while removing personal data from customers.
$meta_keys
array Meta keys to be anonymized.$customer
\WC_Customer The customer object.
add_filter( "woocommerce_gzd_privacy_erase_customer_personal_metadata", function( $meta_keys, $customer ) { // Do something return $meta_keys; }, 10, 2 );
woocommerce_gzd_privacy_export_order_personal_metadata Filter
Filter to allow exporting personal data added by Germanized to orders.
$meta_keys
array Keys as well as titles to be exported.$order
\WC_Order The order object.
add_filter( "woocommerce_gzd_privacy_export_order_personal_metadata", function( $meta_keys, $order ) { // Do something return $meta_keys; }, 10, 2 );
woocommerce_gzd_privacy_export_customer_personal_metadata Filter
Filter to allow exporting personal data added by Germanized to customers.
$meta_keys
array Keys as well as titles to be exported.$customer
\WC_Customer The customer object.
add_filter( "woocommerce_gzd_privacy_export_customer_personal_metadata", function( $meta_keys, $customer ) { // Do something return $meta_keys; }, 10, 2 );
woocommerce_gzd_product_attribute_checkout_visible_default_value Filter
Filter whether a product attribute should be visible within checkout by default.
$default_visible
bool Set to `true` to enable default checkout visibility.$attribute
\WC_GZD_Product_Attribute The product attribute
add_filter( "woocommerce_gzd_product_attribute_checkout_visible_default_value", function( $default_visible, $attribute ) { // Do something return $default_visible; }, 10, 2 );
wc_gzd_revocation_admin_mail Filter
Filter the revocation admin email receiver address.
$email
string The email address.
add_filter( "wc_gzd_revocation_admin_mail", function( $email ) { // Do something return $email; }, 10, 1 );
woocommerce_gzd_email_setup_locale Filter
$param
bool
add_filter( "woocommerce_gzd_email_setup_locale", function( $param ) { // Do something return $param; }, 10, 1 );