• Germanized
  • Hooks

Germanized Core

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_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_force_activate_subscription_for_invoice_payments Filter

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

woocommerce_gzd_fee_supporting_gateways Filter

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

woocommerce_gzd_order_button_payment_gateway_text Filter

Filter to adjust the forced order submit button text per gateway. By default Woo allows gateways to adjust the submit button text. This behaviour does not comply with the button solution – that is why Germanized adds the option-based static text by default.

  1. $button_text string The static button text from within the options.
  2. $gateway_id string The gateway id.
add_filter( "woocommerce_gzd_order_button_payment_gateway_text", function( $button_text, $gateway_id ) {
    // Do something
    return $button_text;    
}, 10, 2 );

woocommerce_gzd_payment_gateway_description Filter

Filters the gateway description in case gateway fees have been added.

  1. $html string The description.
  2. $gateway \WC_Payment_Gateway The gateway instance.
add_filter( "woocommerce_gzd_payment_gateway_description", function( $html, $gateway ) {
    // Do something
    return $html;    
}, 10, 2 );

woocommerce_gzd_product_attribute_checkout_visible_default_value Filter

This filter is documented in includes/class-wc-gzd-product-attribute.php

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

woocommerce_gzd_enable_rating_authenticity_notices Filter

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

woocommerce_gzd_checkout_use_legacy_table_replacement_template Filter

  1. $param string
add_filter( "woocommerce_gzd_checkout_use_legacy_table_replacement_template", function( $param ) {
    // Do something
    return $param;    
}, 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.

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

wc_gzd_frontend_hook_priority Filter

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

woocommerce_gzd_hook_priority_cache_duration Filter

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

woocommerce_gzd_order_min_age Filter

Filters the minimum age required for a certain order.

  1. $min_age int|bool The minimum age for an order. False if not available.
  2. $order_id int The order id
add_filter( "woocommerce_gzd_order_min_age", function( $min_age, $order_id ) {
    // Do something
    return $min_age;    
}, 10, 2 );

woocommerce_gzd_revocation_show_privacy_notice_checkbox Filter

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

woocommerce_gzd_revocation_privacy_notice_label Filter

Filter to adjust the privacy field label for revocation form.

  1. $html string The label.
add_filter( "woocommerce_gzd_revocation_privacy_notice_label", function( $html ) {
    // Do something
    return $html;    
}, 10, 1 );

woocommerce_gzd_revocation_fields Filter

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

woocommerce_gzd_direct_debit_ajax_url Filter

Filter to adjust the direct debit mandate link.

  1. $link string The link.
add_filter( "woocommerce_gzd_direct_debit_ajax_url", function( $link ) {
    // Do something
    return $link;    
}, 10, 1 );

woocommerce_gzd_checkbox_show_conditionally_{$location}_args Filter

Filter to adjust conditional arguments passed to checkboxes based on certain locations. The dynamic portion of the hook name, `$location` refers to the checkbox location, e.g. checkout or pay_for_order.

  1. $checkbox_args array Arguments to be passed.
  2. $checkbox \WC_GZD_Legal_Checkbox Checkbox object.
  3. $checkbox_id string The checkbox id.
  4. $instance \WC_GZD_Legal_Checkbox_Manager The checkbox manager instance.
  5. $context string The checkbox context

woocommerce_gzd_checkbox_is_logged Filter

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