• Germanized
  • Hooks

Germanized Core

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.

  1. $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.

  1. $item \WC_Order_Item The order item.
  2. $order \WC_Order The order.
  3. $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.

  1. $item \WC_Order_Item The order item.
  2. $order \WC_Order The order.
  3. $gzd_product \WC_GZD_Product The product object.
  4. $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.

  1. $item \WC_Order_Item The order item.
  2. $order \WC_Order The order.
  3. $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.

  1. $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`.

  1. $data string Export data.
  2. $product \WC_Product Product object.

woocommerce_gzd_get_nutrient_object Filter

  1. $param_1 bool
  2. $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.

  1. $price string The price.
  2. $product \WC_GZD_Product_Variable The product object.
  3. $min_or_max string Either `min` or `max`.
  4. $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.

  1. $price string The price.
  2. $product \WC_GZD_Product_Variable The product object.
  3. $min_or_max string Either `min` or `max`.
  4. $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.

  1. $price string The price.
  2. $product \WC_GZD_Product_Variable The product object.
  3. $min_or_max string Either `min` or `max`.
  4. $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.

  1. $on_sale bool Whether the product is on sale or not.
  2. $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.

  1. $price string The HTML price range.
  2. $from string The from price.
  3. $to string The to price.
  4. $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.

  1. $price string The price.
  2. $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

  1. $param_1 string
  2. $param_2 string
  3. $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.

  1. $ \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.

  1. $price string The unit price.
  2. $product \WC_Product_Variation The product object.
  3. $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.

  1. $price string The regular unit price.
  2. $product \WC_Product_Variation The product object.
  3. $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.

  1. $price string The sale unit price.
  2. $product \WC_Product_Variation The product object.
  3. $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.

  1. $unit_prices array Array containing unit price data.
  2. $product \WC_GZD_Product_Variable The product object.
  3. $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

  1. $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.

  1. $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.

  1. $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.

  1. $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

  1. $param_1 string
  2. $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.

  1. $filename string The filename.
  2. $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.

  1. $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.

  1. $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

  1. $param_1 array
  2. $param_2 string
  3. $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

  1. $param_1 string
  2. $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

  1. $param_1 array
  2. $param_2 string
  3. $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.

  1. $purpose string The SEPA purpose.
  2. $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.

  1. $id string The mandate id.
  2. $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.

  1. $text string The notification text.
  2. $order \WC_Order The order object.
  3. $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

  1. $param_1 string
  2. $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.

  1. $order \WC_Order The order object.
  2. $user_id int The user id.
  3. $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.

  1. $order \WC_Order The order object.
  2. $user_id int The user id.
  3. $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.

  1. $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

  1. $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.

  1. $text string The mandate type text.
  2. $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

  1. $param_1 string
  2. $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

  1. $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

  1. $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

  1. $param_1 string
  2. $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.

  1. $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.

  1. $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.

  1. $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

  1. $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

  1. $param_1 bool
  2. $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

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

woocommerce_gzd_nutrient_reference_values Filter

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

woocommerce_gzd_nutri_score_values Filter

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