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_product_export_default_columns Filter
Filter to extend Germanized data added to the WooCommerce product export.
$export_data
array Product export data.
add_filter( "woocommerce_gzd_product_export_default_columns", function( $export_data ) { // Do something return $export_data; }, 10, 1 );
woocommerce_gzd_product_export_column_{$column_name} Filter
Filter that allows adjusting product export data for a certain `$column_name`.
$data
string Export data.$product
\WC_Product Product object.
woocommerce_gzd_get_nutrient_object Filter
$param_1
bool$param_2
string
add_filter( "woocommerce_gzd_get_nutrient_object", function( $param_1, $param_2 ) { // Do something return $param_1; }, 10, 2 );
woocommerce_gzd_get_variation_unit_regular_price Filter
Filter to adjust the min or max variation regular unit price.
$price
string The price.$product
\WC_GZD_Product_Variable The product object.$min_or_max
string Either `min` or `max`.$display
bool Either for display purposes or not.
add_filter( "woocommerce_gzd_get_variation_unit_regular_price", function( $price, $product, $min_or_max, $display ) { // Do something return $price; }, 10, 4 );
woocommerce_gzd_get_variation_unit_sale_price Filter
Filter to adjust the min or max variation sale unit price.
$price
string The price.$product
\WC_GZD_Product_Variable The product object.$min_or_max
string Either `min` or `max`.$display
bool Either for display purposes or not.
add_filter( "woocommerce_gzd_get_variation_unit_sale_price", function( $price, $product, $min_or_max, $display ) { // Do something return $price; }, 10, 4 );
woocommerce_gzd_get_variation_unit_price Filter
Filter to adjust the min or max variation unit price.
$price
string The price.$product
\WC_GZD_Product_Variable The product object.$min_or_max
string Either `min` or `max`.$display
bool Either for display purposes or not.
add_filter( "woocommerce_gzd_get_variation_unit_price", function( $price, $product, $min_or_max, $display ) { // Do something return $price; }, 10, 4 );
woocommerce_gzd_product_is_on_unit_sale Filter
Filter to decide whether a product is on unit sale or not.
$on_sale
bool Whether the product is on sale or not.$product
\WC_GZD_Product The product object.
add_filter( "woocommerce_gzd_product_is_on_unit_sale", function( $on_sale, $product ) { // Do something return $on_sale; }, 10, 2 );
woocommerce_germanized_get_price_html_from_to Filter
Filter to adjust the HTML price range for unit prices.
$price
string The HTML price range.$from
string The from price.$to
string The to price.$product
\WC_GZD_Product The product object.
add_filter( "woocommerce_germanized_get_price_html_from_to", function( $price, $from, $to, $product ) { // Do something return $price; }, 10, 4 );
woocommerce_gzd_variable_unit_price_html Filter
Filter to adjust variable 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_Variable The product object.
add_filter( "woocommerce_gzd_variable_unit_price_html", function( $price, $product ) { // Do something return $price; }, 10, 2 );
woocommerce_gzd_get_variation_unit_prices_hash Filter
$param_1
string$param_2
string$param_3
string
add_filter( "woocommerce_gzd_get_variation_unit_prices_hash", function( $param_1, $param_2, $param_3 ) { // Do something return $param_1; }, 10, 3 );
woocommerce_gzd_before_get_variable_variation_unit_price Action
Before retrieving variation unit price. Fires before a unit price for a certain variation is retrieved. May be useful for recalculation purposes.
$
\WC_GZD_Product the variation product object.
add_action( "woocommerce_gzd_before_get_variable_variation_unit_price", function( $ ) { // Do something }, 10, 1 );
woocommerce_gzd_variation_unit_prices_price Filter
Filters the variation unit price.
$price
string The unit price.$product
\WC_Product_Variation The product object.$parent
\WC_GZD_Product_Variable The variable parent product object.
add_filter( "woocommerce_gzd_variation_unit_prices_price", function( $price, $product, $parent ) { // Do something return $price; }, 10, 3 );
woocommerce_gzd_variation_unit_prices_regular_price Filter
Filters the variation regular unit price.
$price
string The regular unit price.$product
\WC_Product_Variation The product object.$parent
\WC_GZD_Product_Variable The variable parent product object.
add_filter( "woocommerce_gzd_variation_unit_prices_regular_price", function( $price, $product, $parent ) { // Do something return $price; }, 10, 3 );
woocommerce_gzd_variation_unit_prices_sale_price Filter
Filters the variation sale unit price.
$price
string The sale unit price.$product
\WC_Product_Variation The product object.$parent
\WC_GZD_Product_Variable The variable parent product object.
add_filter( "woocommerce_gzd_variation_unit_prices_sale_price", function( $price, $product, $parent ) { // Do something return $price; }, 10, 3 );
woocommerce_gzd_variation_unit_prices Filter
Filter to adjust the unit prices for a certain variation right before returning. Last change to adjust unit prices before handing them over for further processing.
$unit_prices
array Array containing unit price data.$product
\WC_GZD_Product_Variable The product object.$display
bool Whether output is for display purposes or not.
add_filter( "woocommerce_gzd_variation_unit_prices", function( $unit_prices, $product, $display ) { // Do something return $unit_prices; }, 10, 3 );
woocommerce_gzd_is_loadable Filter
$param
string
add_filter( "woocommerce_gzd_is_loadable", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_invoice_icon Filter
Filter to allow adding an icon to the invoice gateway.
$icon_url
string The icon URL.
add_filter( "woocommerce_gzd_invoice_icon", function( $icon_url ) { // Do something return $icon_url; }, 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 );
woocommerce_gzd_direct_debit_export_order_query_args Filter
$param_1
string$param_2
string
add_filter( "woocommerce_gzd_direct_debit_export_order_query_args", function( $param_1, $param_2 ) { // Do something return $param_1; }, 10, 2 );
woocommerce_germanized_direct_debit_export_filename Filter
Filter that allows adjusting the direct debit export filename.
$filename
string The filename.$args
array The export arguments.
add_filter( "woocommerce_germanized_direct_debit_export_filename", function( $filename, $args ) { // Do something return $filename; }, 10, 2 );
woocommerce_gzd_direct_debit_sepa_xml_msg_id Filter
Filter to adjust direct debit SEPA XML message id.
$message_id
string The message id.
add_filter( "woocommerce_gzd_direct_debit_sepa_xml_msg_id", function( $message_id ) { // Do something return $message_id; }, 10, 1 );
woocommerce_gzd_direct_debit_sepa_xml_exporter Filter
Filter to adjust the direct debit SEPA XML exporter instance.
$direct_debit
\Digitick\Sepa\TransferFile\Facade\CustomerDirectDebitFacade Exporter instance.
add_filter( "woocommerce_gzd_direct_debit_sepa_xml_exporter", function( $direct_debit ) { // Do something return $direct_debit; }, 10, 1 );
woocommerce_gzd_direct_debit_sepa_xml_exporter_payment_args Filter
$param_1
array$param_2
string$param_3
string
add_filter( "woocommerce_gzd_direct_debit_sepa_xml_exporter_payment_args", function( $param_1, $param_2, $param_3 ) { // Do something return $param_1; }, 10, 3 );
woocommerce_gzd_direct_debit_sepa_xml_exporter_batch_booking Filter
$param_1
string$param_2
string
add_filter( "woocommerce_gzd_direct_debit_sepa_xml_exporter_batch_booking", function( $param_1, $param_2 ) { // Do something return $param_1; }, 10, 2 );
woocommerce_gzd_direct_debit_sepa_xml_exporter_transfer_args Filter
$param_1
array$param_2
string$param_3
string
add_filter( "woocommerce_gzd_direct_debit_sepa_xml_exporter_transfer_args", function( $param_1, $param_2, $param_3 ) { // Do something return $param_1; }, 10, 3 );
woocommerce_germanized_direct_debit_purpose Filter
Filter that allows adjusting the purpose of a SEPA direct debit.
$purpose
string The SEPA purpose.$order
\WC_Order The order object.
add_filter( "woocommerce_germanized_direct_debit_purpose", function( $purpose, $order ) { // Do something return $purpose; }, 10, 2 );
woocommerce_germanized_direct_debit_mandate_id Filter
Filter to adjust the direct debit mandate id.
$id
string The mandate id.$order
bool|\WC_Order The order if available. `false` otherwise.
add_filter( "woocommerce_germanized_direct_debit_mandate_id", function( $id, $order ) { // Do something return $id; }, 10, 2 );
woocommerce_gzd_direct_debit_pre_notification_text Filter
Filter to adjust the direct debit pre notification text.
$text
string The notification text.$order
\WC_Order The order object.$debit_date
int The debit date as timestamp.
add_filter( "woocommerce_gzd_direct_debit_pre_notification_text", function( $text, $order, $debit_date ) { // Do something return $text; }, 10, 3 );
woocommerce_gzd_direct_debit_send_pre_notification Filter
$param_1
string$param_2
string
add_filter( "woocommerce_gzd_direct_debit_send_pre_notification", function( $param_1, $param_2 ) { // Do something return $param_1; }, 10, 2 );
woocommerce_gzd_direct_debit_order_data_updated Action
Updated direct debit order data. Fires after Germanized has updated direct debit data for a specific order.
$order
\WC_Order The order object.$user_id
int The user id.$this
\WC_GZD_Gateway_Direct_Debit The gateway instance.
add_action( "woocommerce_gzd_direct_debit_order_data_updated", function( $order, $user_id, $this ) { // Do something }, 10, 3 );
woocommerce_gzd_direct_debit_user_data_updated Action
Updated direct debit user data. Fires after Germanized has updated direct debit data for a specific user.
$order
\WC_Order The order object.$user_id
int The user id.$this
\WC_GZD_Gateway_Direct_Debit The gateway instance.
add_action( "woocommerce_gzd_direct_debit_user_data_updated", function( $order, $user_id, $this ) { // Do something }, 10, 3 );
woocommerce_gzd_direct_debit_mandate_type_text Filter
Filter to adjust the default mandate type text.
$text
string The mandate type text.
add_filter( "woocommerce_gzd_direct_debit_mandate_type_text", function( $text ) { // Do something return $text; }, 10, 1 );
woocommerce_gzd_direct_debit_mandate_checkout_placeholders Filter
$param
string
add_filter( "woocommerce_gzd_direct_debit_mandate_checkout_placeholders", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_direct_debit_mandate_type_order_text Filter
Filter to adjust mandate type text for a certain order.
$text
string The mandate type text.$order
\WC_Order The order object.
add_filter( "woocommerce_gzd_direct_debit_mandate_type_order_text", function( $text, $order ) { // Do something return $text; }, 10, 2 );
woocommerce_gzd_direct_debit_mandate_order_placeholders Filter
$param_1
string$param_2
string
add_filter( "woocommerce_gzd_direct_debit_mandate_order_placeholders", function( $param_1, $param_2 ) { // Do something return $param_1; }, 10, 2 );
woocommerce_gzd_direct_debit_mask_char Filter
$param
string
add_filter( "woocommerce_gzd_direct_debit_mask_char", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_direct_debit_mandate_text_placeholders Filter
$param
string
add_filter( "woocommerce_gzd_direct_debit_mandate_text_placeholders", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_direct_debit_mandate_text Filter
$param_1
string$param_2
string
add_filter( "woocommerce_gzd_direct_debit_mandate_text", function( $param_1, $param_2 ) { // Do something return $param_1; }, 10, 2 );
woocommerce_gzd_direct_debit_form_start Action
Before direct debit checkout form. Fires before the direct debit checkout form is being rendered.
$id
string The gateway id.
add_action( "woocommerce_gzd_direct_debit_form_start", function( $id ) { // Do something }, 10, 1 );
woocommerce_gzd_direct_debit_form_end Action
After direct debit checkout form. Fires after the direct debit checkout form is being rendered.
$id
string The gateway id.
add_action( "woocommerce_gzd_direct_debit_form_end", function( $id ) { // Do something }, 10, 1 );
woocommerce_gzd_direct_debit_verify_iban_country Filter
Filter that allows enabling IBAN country validation. By enabling this option the IBAN country must match the billing country.
$enable
bool Whether to enable the check or not.
add_filter( "woocommerce_gzd_direct_debit_verify_iban_country", function( $enable ) { // Do something return $enable; }, 10, 1 );
woocommerce_gzd_direct_debit_mandate_text_checkout_fields Filter
$param
array
add_filter( "woocommerce_gzd_direct_debit_mandate_text_checkout_fields", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_direct_debit_store_fields_on_processing Filter
$param_1
bool$param_2
string
add_filter( "woocommerce_gzd_direct_debit_store_fields_on_processing", function( $param_1, $param_2 ) { // Do something return $param_1; }, 10, 2 );
woocommerce_gzd_direct_debit_default_status Filter
$param
string
add_filter( "woocommerce_gzd_direct_debit_default_status", function( $param ) { // Do something return $param; }, 10, 1 );
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 );