woocommerce_gzd_product_has_deposit Filter
$param_1
string$param_2
string$param_3
string
add_filter( "woocommerce_gzd_product_has_deposit", function( $param_1, $param_2, $param_3 ) { // Do something return $param_1; }, 10, 3 );
woocommerce_gzd_product_is_other_service Filter
$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
$param_1
bool$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.
$product
\WC_GZD_Product The product object.$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
$param_1
string$param_2
string$param_3
string$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
$param_1
string$param_2
string$param_3
string$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
$param_1
string$param_2
string$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
$param_1
string$param_2
string$param_3
string$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.
$min_age
string The minimum age.$product
\WC_GZD_Product The product object.$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
$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.
$item_data
array The attribute data.$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.
$is_exception
bool Whether it is an exception or not.$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.
$html
string The new price containing labels.$old_price
string The old price.$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
$param_1
string$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
$param_1
bool$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
$param_1
string$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
$param_1
bool$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.
$tax_notice
string The tax notice.$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.
$this
\WC_GZD_Product The product object.$price
string Optionally pass the price.$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.
$unit_price
string The calculated unit price.$price
string The price passed.$qty
int The quantity.$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.
$unit_price
string The calculated unit price.$price
string The price passed.$qty
int The quantity.$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.
$hide
bool Whether to hide the output or not.$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.
$output
string The output.$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.
$html
string The deposit as HTML.$product
\WC_GZD_Product The product object.$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.
$hide
bool Whether to hide the output or not.$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.
$output
string The output.$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_product_delivery_times Filter
$param_1
string$param_2
string$param_3
string$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.
$hide
bool Whether to hide delivery time or not.$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.
$output
string The output.$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.
$text
string The delivery time text.$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.
$html
string The notice.$option
string The placeholder option.$html_org
string The HTML before replacement.$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.
$output
string The new delivery time text.$product
\WC_GZD_Product The product object.$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.
$output
string The new delivery time text.$product
\WC_GZD_Product The product object.$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.
$html
string The delivery time html.$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
$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.
$disable
bool Whether to disable the shipping costs notice or not.$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.
$output
string The output.$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_is_loadable Filter
$param
string
add_filter( "woocommerce_gzd_is_loadable", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_skip_order_item_split_tax_calculation Filter
$param_1
bool$param_2
string
add_filter( "woocommerce_gzd_skip_order_item_split_tax_calculation", function( $param_1, $param_2 ) { // Do something return $param_1; }, 10, 2 );
woocommerce_gzd_order_main_service_tax_class Filter
$param
string
add_filter( "woocommerce_gzd_order_main_service_tax_class", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_attempt_order_cancellation_url Filter
Filter the order cancellation URL replacement when customer order cancellation was disabled in the Germanized settings. Defaults to the order-received page.
$url
string The return url.
add_filter( "woocommerce_gzd_attempt_order_cancellation_url", function( $url ) { // Do something return $url; }, 10, 1 );
woocommerce_gzd_before_add_order_item_meta Action
Before adding order item meta. Fires before Germanized added order item meta.
$item
\WC_Order_Item The order item.$order
\WC_Order The order.$gzd_item
\WC_GZD_Order_Item The order item object.
add_action( "woocommerce_gzd_before_add_order_item_meta", function( $item, $order, $gzd_item ) { // Do something }, 10, 3 );
woocommerce_gzd_add_order_item_meta Action
Add order item meta. Fires when Germanized adds order item meta.
$item
\WC_Order_Item The order item.$order
\WC_Order The order.$gzd_product
\WC_GZD_Product The product object.$gzd_item
\WC_GZD_Order_Item The order item object.
add_action( "woocommerce_gzd_add_order_item_meta", function( $item, $order, $gzd_product, $gzd_item ) { // Do something }, 10, 4 );
woocommerce_gzd_after_add_order_item_meta Action
After adding order item meta. Fires after Germanized added order item meta.
$item
\WC_Order_Item The order item.$order
\WC_Order The order.$gzd_item
\WC_GZD_Order_Item The order item object.
add_action( "woocommerce_gzd_after_add_order_item_meta", function( $item, $order, $gzd_item ) { // Do something }, 10, 3 );
woocommerce_gzd_check_virtual_vat_exempt Filter
$param_1
bool$param_2
string$param_3
string
add_filter( "woocommerce_gzd_check_virtual_vat_exempt", function( $param_1, $param_2, $param_3 ) { // Do something return $param_1; }, 10, 3 );
woocommerce_gzd_force_tax_location_vat_base_rates Filter
Filter to adjust whether virtual VAT is applicable or not. If set to true, Germanized will return tax rates based on the user country.
$virtual_vat_applicable
bool Whether virtual VAT rates are applicable or not.$tax_class
string The tax class.$location
array The tax location data.
add_filter( "woocommerce_gzd_force_tax_location_vat_base_rates", function( $virtual_vat_applicable, $tax_class, $location ) { // Do something return $virtual_vat_applicable; }, 10, 3 );
woocommerce_gzd_shortcode_product_unit_price_html Filter
Filter shortcode product unit price output.
$html
string The output.$atts
array The shortcode arguments.
add_filter( "woocommerce_gzd_shortcode_product_unit_price_html", function( $html, $atts ) { // Do something return $html; }, 10, 2 );
woocommerce_gzd_shortcode_product_units_html Filter
Filter shortcode product unit output.
$html
string The output.$atts
array The shortcode arguments.
add_filter( "woocommerce_gzd_shortcode_product_units_html", function( $html, $atts ) { // Do something return $html; }, 10, 2 );
woocommerce_gzd_shortcode_product_delivery_time_html Filter
Filter shortcode product delivery time output.
$html
string The output.$atts
array The shortcode arguments.
add_filter( "woocommerce_gzd_shortcode_product_delivery_time_html", function( $html, $atts ) { // Do something return $html; }, 10, 2 );
woocommerce_gzd_shortcode_product_tax_notice_html Filter
Filter shortcode product tax notice output.
$html
string The output.$atts
array The shortcode arguments.
add_filter( "woocommerce_gzd_shortcode_product_tax_notice_html", function( $html, $atts ) { // Do something return $html; }, 10, 2 );