• Germanized
  • Hooks

Germanized Core

woocommerce_gzd_maybe_remove_email_payment_instructions Action

  1. $param string
add_action( "woocommerce_gzd_maybe_remove_email_payment_instructions", function( $param ) {
    // Do something
        
}, 10, 1 );

woocommerce_gzd_maybe_add_email_payment_instructions_after_removal Action

  1. $param string
add_action( "woocommerce_gzd_maybe_add_email_payment_instructions_after_removal", function( $param ) {
    // Do something
        
}, 10, 1 );

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 );

woocommerce_gzd_customer_activation_checkout_redirect Filter

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

woocommerce_gzd_customer_registration_redirect Filter

Filter URL which serves as redirection if a customer has not yet activated it’s account and wants to access checkout.

  1. $url string The redirection URL.
  2. $param_2 string
add_filter( "woocommerce_gzd_customer_registration_redirect", function( $url, $param_2 ) {
    // Do something
    return $url;    
}, 10, 2 );

woocommerce_gzd_customer_double_opt_in_supported_user_roles Filter

Filters supported DOI user roles. By default only the WooCommerce customer role is supported. „`php function ex_add_doi_roles( $roles ) { $roles[] = ‚my_custom_role‘; return $roles; } add_filter( ‚woocommerce_gzd_customer_double_opt_in_supported_user_roles‘, ‚ex_add_doi_roles‘, 10, 1 ); „`

  1. $roles array Array of roles to be supported.
add_filter( "woocommerce_gzd_customer_double_opt_in_supported_user_roles", function( $roles ) {
    // Do something
    return $roles;    
}, 10, 1 );

woocommerce_gzd_customer_supports_double_opt_in Filter

Filter whether the DOI is supported for a certain user.

  1. $supports_double_opt_in bool Whether the user is supported or not.
  2. $user \WP_User The user instance.
add_filter( "woocommerce_gzd_customer_supports_double_opt_in", function( $supports_double_opt_in, $user ) {
    // Do something
    return $supports_double_opt_in;    
}, 10, 2 );

woocommerce_gzd_double_opt_in_successful_redirect Filter

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

woocommerce_gzd_delete_unactivated_customer Filter

Filters whether a certain user which has not yet been activated should be deleted.

  1. $delete bool Whether to delete the unactivated customer or not.
  2. $user \WP_User The user instance.
add_filter( "woocommerce_gzd_delete_unactivated_customer", function( $delete, $user ) {
    // Do something
    return $delete;    
}, 10, 2 );

woocommerce_gzd_customer_account_activation_query Filter

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

woocommerce_germanized_account_activation_expiration Filter

Filters the expiration time of customer activation keys.

  1. $expiration int The expiration time in seconds.
add_filter( "woocommerce_germanized_account_activation_expiration", function( $expiration ) {
    // Do something
    return $expiration;    
}, 10, 1 );

woocommerce_gzd_customer_opted_in Action

Customer has opted-in. Fires whenever a customer has opted-in (DOI). Triggers before the confirmation e-mail has been sent and the user meta has been deleted.

  1. $user \WP_User The user instance.
add_action( "woocommerce_gzd_customer_opted_in", function( $user ) {
    // Do something
        
}, 10, 1 );

woocommerce_gzd_user_activation_auto_login Filter

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

woocommerce_gzd_customer_opt_in_finished Action

Customer opt-in finished. Fires after a customer has been marked as opted-in and received the e-mail confirmation. Customer may already be authenticated at this point.

  1. $user \WP_User The user instance.
add_action( "woocommerce_gzd_customer_opt_in_finished", function( $user ) {
    // Do something
        
}, 10, 1 );

woocommerce_gzd_customer_activation_expired Action

Customer activation code expired. Hook fires whenever a customer tries to activate his account but the activation key has already expired.

  1. $user \WP_User The user instance.
add_action( "woocommerce_gzd_customer_activation_expired", function( $user ) {
    // Do something
        
}, 10, 1 );

woocommerce_gzd_customer_activation_url Filter

Filter the customer activation URL. Added a custom suffix to prevent email clients from stripping points as last chars.

  1. $url string The activation URL.
add_filter( "woocommerce_gzd_customer_activation_url", function( $url ) {
    // Do something
    return $url;    
}, 10, 1 );

woocommerce_gzd_customer_account_cleanup_excluded_user_roles Filter

Filter user roles excluded during account cleanup. By default user roles `administrator`, `editor`, `author` and `shop_manager` are excluded.

  1. $roles array Array of roles to be excluded from account cleanup.
add_filter( "woocommerce_gzd_customer_account_cleanup_excluded_user_roles", function( $roles ) {
    // Do something
    return $roles;    
}, 10, 1 );

woocommerce_gzd_get_allergen_object Filter

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

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 );

woocommerce_gzd_checkbox_value Filter

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

woocommerce_gzd_checkbox_is_checked Filter

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

woocommerce_gzd_loggable_checkboxes Filter

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

woocommerce_gzd_editable_checkboxes Filter

  1. $param_1 string
  2. $param_2 string
add_filter( "woocommerce_gzd_editable_checkboxes", function( $param_1, $param_2 ) {
    // Do something
    return $param_1;    
}, 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_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_email_attachment_content_shortcodes_allowed Filter

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

woocommerce_gzd_before_get_email_meta_plain_content Action

Hook that executes after retrieving legal page content from the optional meta field `_legal_text` that may be used to use a differing text as legal attachment.

  1. $post \WP_Post
add_action( "woocommerce_gzd_before_get_email_meta_plain_content", function( $post ) {
    // Do something
        
}, 10, 1 );

woocommerce_gzd_apply_optional_content_filter_email_attachment Filter

Filter that allows disabling the `the_content` filter for optional legal page content.

  1. $enable bool Enable or disable the `the_content` filter.
  2. $content string The content.
  3. $param_3 string
add_filter( "woocommerce_gzd_apply_optional_content_filter_email_attachment", function( $enable, $content, $param_3 ) {
    // Do something
    return $enable;    
}, 10, 3 );

woocommerce_gzd_email_plain_content Filter

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

woocommerce_gzd_product_warranties_email_product_ids Filter

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

woocommerce_gzd_reset_email_instance Action

  1. $param string
add_action( "woocommerce_gzd_reset_email_instance", function( $param ) {
    // Do something
        
}, 10, 1 );

woocommerce_gzd_current_email_instance Filter

Filters the current email instance (e.g. while sending an email) determined by Germanized. This instance is being used to check whether to attach legal texts to this email or not.

  1. $email bool|\WC_Email The current email instance.
  2. $email_helper \WC_GZD_Emails The email helper instance.
add_filter( "woocommerce_gzd_current_email_instance", function( $email, $email_helper ) {
    // Do something
    return $email;    
}, 10, 2 );

woocommerce_gzd_pay_for_order_request_needs_confirmation Filter

Filter to decide whether a pay for order request needs email confirmation or not.

  1. $needs_confirmation bool Needs confirmation or not.
  2. $order \WC_Order The order instance
add_filter( "woocommerce_gzd_pay_for_order_request_needs_confirmation", function( $needs_confirmation, $order ) {
    // Do something
    return $needs_confirmation;    
}, 10, 2 );

woocommerce_gzd_admin_email_order_confirmation_text_option Filter

Filter order confirmation text option field.

  1. $args array Text option arguments.
add_filter( "woocommerce_gzd_admin_email_order_confirmation_text_option", function( $args ) {
    // Do something
    return $args;    
}, 10, 1 );

woocommerce_gzd_replace_email_titles Filter

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

woocommerce_gzd_replace_email_title_for_textdomain Filter

Filters whether to replace the email title for a given textdomain. By default, only email titles from the Woo core are replaced.

  1. $enable bool Whether to enable searching or not.
  2. $domain string The textdomain.
add_filter( "woocommerce_gzd_replace_email_title_for_textdomain", function( $enable, $domain ) {
    // Do something
    return $enable;    
}, 10, 2 );

woocommerce_gzd_email_title_search_for Filter

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

woocommerce_gzd_email_title Filter

Filter the email title option used to address the customer in emails.

  1. $title string The title.
  2. $order \WC_Order The order object.
add_filter( "woocommerce_gzd_email_title", function( $title, $order ) {
    // Do something
    return $title;    
}, 10, 2 );