• Germanized
  • Hooks

Germanized Core

woocommerce_gzd_product_is_other_service Filter

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

woocommerce_gzd_product_differential_taxed_is_used_good Filter

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

woocommerce_gzd_recalculated_unit_price Action

Recalculated unit price. Executes whenever the unit price is recalculated.

  1. $product \WC_GZD_Product The product object.
  2. $args array Arguments passed to the recalculation method.
add_action( "woocommerce_gzd_recalculated_unit_price", function( $product, $args ) {
    // Do something
        
}, 10, 2 );

woocommerce_gzd_product_nutrient_value Filter

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

woocommerce_gzd_product_nutrient_reference Filter

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

woocommerce_gzd_product_nutrient_value_term_id Filter

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

woocommerce_gzd_product_nutrient Filter

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

woocommerce_gzd_product_age_verification_min_age Filter

Filter that allows adjusting a product’s age verification min age.

  1. $min_age string The minimum age.
  2. $product \WC_GZD_Product The product object.
  3. $param_3 string
add_filter( "woocommerce_gzd_product_age_verification_min_age", function( $min_age, $product, $param_3 ) {
    // Do something
    return $min_age;    
}, 10, 3 );

woocommerce_gzd_product_attribute_checkout_clickable Filter

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

woocommerce_gzd_product_checkout_attributes Filter

Filter product attributes visible during checkout.

  1. $item_data array The attribute data.
  2. $product \WC_Product The product object.
add_filter( "woocommerce_gzd_product_checkout_attributes", function( $item_data, $product ) {
    // Do something
    return $item_data;    
}, 10, 2 );

woocommerce_gzd_product_virtual_vat_exception Filter

Filter that allows marking a product as virtual vat exception.

  1. $is_exception bool Whether it is an exception or not.
  2. $product \WC_GZD_Product The product object.
add_filter( "woocommerce_gzd_product_virtual_vat_exception", function( $is_exception, $product ) {
    // Do something
    return $is_exception;    
}, 10, 2 );

woocommerce_gzd_product_sale_price_with_labels_html Filter

Filters the product sale price containing price labels.

  1. $html string The new price containing labels.
  2. $old_price string The old price.
  3. $product \WC_GZD_Product The product object.
add_filter( "woocommerce_gzd_product_sale_price_with_labels_html", function( $html, $old_price, $product ) {
    // Do something
    return $html;    
}, 10, 3 );

woocommerce_gzd_product_is_doing_price_html_action Filter

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

woocommerce_gzd_shopmarks_empty_price_html_check_enabled Filter

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

woocommerce_gzd_product_misses_price Filter

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

woocommerce_gzd_product_hide_shopmarks_empty_price Filter

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

woocommerce_gzd_product_tax_info Filter

Filter to adjust the product tax notice. This filter allows you to easily change the tax notice on a per product basis.

  1. $tax_notice string The tax notice.
  2. $product \WC_GZD_Product The product object.
add_filter( "woocommerce_gzd_product_tax_info", function( $tax_notice, $product ) {
    // Do something
    return $tax_notice;    
}, 10, 2 );

woocommerce_gzd_before_get_unit_price Action

Before retrieving unit price. Fires before the product unit price is retrieved.

  1. $this \WC_GZD_Product The product object.
  2. $price string Optionally pass the price.
  3. $qty int The product quantity.
add_action( "woocommerce_gzd_before_get_unit_price", function( $this, $price, $qty ) {
    // Do something
        
}, 10, 3 );

woocommerce_gzd_unit_price_including_tax Filter

Filter to adjust the unit price including tax.

  1. $unit_price string The calculated unit price.
  2. $price string The price passed.
  3. $qty int The quantity.
  4. $product \WC_GZD_Product The product object.
add_filter( "woocommerce_gzd_unit_price_including_tax", function( $unit_price, $price, $qty, $product ) {
    // Do something
    return $unit_price;    
}, 10, 4 );

woocommerce_gzd_unit_price_excluding_tax Filter

Filter to adjust the unit price excluding tax.

  1. $unit_price string The calculated unit price.
  2. $price string The price passed.
  3. $qty int The quantity.
  4. $product \WC_GZD_Product The product object.
add_filter( "woocommerce_gzd_unit_price_excluding_tax", function( $unit_price, $price, $qty, $product ) {
    // Do something
    return $unit_price;    
}, 10, 4 );

woocommerce_gzd_hide_deposit_amount_text Filter

Filter that allows disabling the deposit text output for a certain product.

  1. $hide bool Whether to hide the output or not.
  2. $product \WC_GZD_Product The product object.
add_filter( "woocommerce_gzd_hide_deposit_amount_text", function( $hide, $product ) {
    // Do something
    return $hide;    
}, 10, 2 );

woocommerce_gzd_disabled_deposit_amount_text Filter

Filter to adjust the output of a disabled product deposit text.

  1. $output string The output.
  2. $product \WC_GZD_Product The product object.
add_filter( "woocommerce_gzd_disabled_deposit_amount_text", function( $output, $product ) {
    // Do something
    return $output;    
}, 10, 2 );

woocommerce_gzd_deposit_amount_html Filter

Filter to adjust the product’s deposit HTML output.

  1. $html string The deposit as HTML.
  2. $product \WC_GZD_Product The product object.
  3. $param_3 string
add_filter( "woocommerce_gzd_deposit_amount_html", function( $html, $product, $param_3 ) {
    // Do something
    return $html;    
}, 10, 3 );

woocommerce_gzd_hide_unit_text Filter

Filter that allows disabling the unit price output for a certain product.

  1. $hide bool Whether to hide the output or not.
  2. $product \WC_GZD_Product The product object.
add_filter( "woocommerce_gzd_hide_unit_text", function( $hide, $product ) {
    // Do something
    return $hide;    
}, 10, 2 );

woocommerce_germanized_disabled_unit_text Filter

Filter to adjust the output of a disabled product unit price.

  1. $output string The output.
  2. $product \WC_GZD_Product The product object.
add_filter( "woocommerce_germanized_disabled_unit_text", function( $output, $product ) {
    // Do something
    return $output;    
}, 10, 2 );

woocommerce_gzd_before_get_unit_price_html Action

Before retrieving unit price HTML. Fires before the HTML output for the unit price is generated.

  1. $this \WC_GZD_Product The product object.
add_action( "woocommerce_gzd_before_get_unit_price_html", function( $this ) {
    // Do something
        
}, 10, 1 );

woocommerce_gzd_hide_product_units_text Filter

Filter that allows disabling product units output for a specific product.

  1. $disable bool Whether to disable or not.
  2. $product \WC_GZD_Product The product object.
add_filter( "woocommerce_gzd_hide_product_units_text", function( $disable, $product ) {
    // Do something
    return $disable;    
}, 10, 2 );

woocommerce_germanized_disabled_product_units_text Filter

Filter that allows adjusting the disabled product units output.

  1. $notice string The output.
  2. $product \WC_GZD_Product The product object.
add_filter( "woocommerce_germanized_disabled_product_units_text", function( $notice, $product ) {
    // Do something
    return $notice;    
}, 10, 2 );

woocommerce_gzd_product_units_html Filter

Filter to adjust the product units HTML output.

  1. $html string The HTML output.
  2. $product \WC_GZD_Product The product object.
add_filter( "woocommerce_gzd_product_units_html", function( $html, $product ) {
    // Do something
    return $html;    
}, 10, 2 );

woocommerce_gzd_product_delivery_times Filter

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

woocommerce_germanized_hide_delivery_time_text Filter

Filter that allows hiding the delivery time for a specific product.

  1. $hide bool Whether to hide delivery time or not.
  2. $product \WC_GZD_Product The product object.
add_filter( "woocommerce_germanized_hide_delivery_time_text", function( $hide, $product ) {
    // Do something
    return $hide;    
}, 10, 2 );

woocommerce_germanized_disabled_delivery_time_text Filter

Filter to adjust disabled product delivery time output.

  1. $output string The output.
  2. $product \WC_GZD_Product The product object.
add_filter( "woocommerce_germanized_disabled_delivery_time_text", function( $output, $product ) {
    // Do something
    return $output;    
}, 10, 2 );

woocommerce_germanized_empty_delivery_time_text Filter

Filter to adjust empty delivery time text.

  1. $text string The delivery time text.
  2. $product \WC_GZD_Product The product object.
add_filter( "woocommerce_germanized_empty_delivery_time_text", function( $text, $product ) {
    // Do something
    return $text;    
}, 10, 2 );

woocommerce_germanized_delivery_time_html Filter

Filter to adjust product delivery time HTML.

  1. $html string The notice.
  2. $option string The placeholder option.
  3. $html_org string The HTML before replacement.
  4. $product \WC_GZD_Product The product object.
add_filter( "woocommerce_germanized_delivery_time_html", function( $html, $option, $html_org, $product ) {
    // Do something
    return $html;    
}, 10, 4 );

woocommerce_germanized_delivery_time_out_of_stock_html Filter

Filter to adjust product delivery time in case of a product is out of stock.

  1. $output string The new delivery time text.
  2. $product \WC_GZD_Product The product object.
  3. $html string The original HTML output.
add_filter( "woocommerce_germanized_delivery_time_out_of_stock_html", function( $output, $product, $html ) {
    // Do something
    return $output;    
}, 10, 3 );

woocommerce_germanized_delivery_time_backorder_html Filter

Filter to adjust product delivery time in case of a product is on backorder.

  1. $output string The new delivery time text.
  2. $product \WC_GZD_Product The product object.
  3. $html string The original HTML output.
add_filter( "woocommerce_germanized_delivery_time_backorder_html", function( $output, $product, $html ) {
    // Do something
    return $output;    
}, 10, 3 );

woocommerce_gzd_product_delivery_time_html Filter

Filter to adjust product delivery time html output.

  1. $html string The delivery time html.
  2. $product \WC_GZD_Product The product object.
add_filter( "woocommerce_gzd_product_delivery_time_html", function( $html, $product ) {
    // Do something
    return $html;    
}, 10, 2 );

woocommerce_gzd_defect_description Filter

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

woocommerce_germanized_hide_shipping_costs_text Filter

Filter to optionally disable shipping costs info for a certain product.

  1. $disable bool Whether to disable the shipping costs notice or not.
  2. $product \WC_GZD_Product The product object.
add_filter( "woocommerce_germanized_hide_shipping_costs_text", function( $disable, $product ) {
    // Do something
    return $disable;    
}, 10, 2 );

woocommerce_germanized_disabled_shipping_text Filter

Filter to adjust a product’s disabled shipping costs notice.

  1. $output string The output.
  2. $product \WC_GZD_Product The product object.
add_filter( "woocommerce_germanized_disabled_shipping_text", function( $output, $product ) {
    // Do something
    return $output;    
}, 10, 2 );

woocommerce_gzd_get_term Action

Before retrieving a certain term. Executes before retrieving a certain term (e.g. a delivery time).

  1. $key string The identifier e.g. term slug.
  2. $by string Indicates how to identify the term e.g. by slug.
  3. $taxonomy string The taxonomy linked to the term e.g. delivery_time.
add_action( "woocommerce_gzd_get_term", function( $key, $by, $taxonomy ) {
    // Do something
        
}, 10, 3 );

woocommerce_gzd_after_get_term Action

After retrieving a certain term. Executes after retrieving a certain term (e.g. a delivery time).

  1. $key string The identifier e.g. term slug.
  2. $by string Indicates how to identify the term e.g. by slug.
  3. $taxonomy string The taxonomy linked to the term e.g. delivery_time.
add_action( "woocommerce_gzd_after_get_term", function( $key, $by, $taxonomy ) {
    // Do something
        
}, 10, 3 );

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_double_opt_resent_activation_redirect Filter

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