woocommerce_gzd_maybe_remove_email_payment_instructions Action
$paramstring
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
$paramstring
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
$param_1string$param_2string
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
$paramstring
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.
$urlstring The redirection URL.$param_2string
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 ); „`
$rolesarray 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.
$supports_double_opt_inbool Whether the user is supported or not.$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
$paramstring
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.
$deletebool Whether to delete the unactivated customer or not.$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
$param_1array$param_2string$param_3string
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.
$expirationint 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.
$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
$param_1string$param_2string
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.
$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.
$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.
$urlstring 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.
$rolesarray 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
$param_1bool$param_2string
add_filter( "woocommerce_gzd_get_allergen_object", function( $param_1, $param_2 ) {
// Do something
return $param_1;
}, 10, 2 );
woocommerce_gzd_legal_checkbox_core_ids Filter
Filter that returns the core checkbox ids.
$checkbox_idsarray Array containg checkbox ids.
add_filter( "woocommerce_gzd_legal_checkbox_core_ids", function( $checkbox_ids ) {
// Do something
return $checkbox_ids;
}, 10, 1 );
woocommerce_gzd_direct_debit_ajax_url Filter
Filter to adjust the direct debit mandate link.
$linkstring The link.
add_filter( "woocommerce_gzd_direct_debit_ajax_url", function( $link ) {
// Do something
return $link;
}, 10, 1 );
woocommerce_gzd_register_legal_core_checkboxes Action
After core checkbox registration. Fires after Germanized has registered it’s core legal checkboxes. Might be used to register additional checkboxes. „`php function ex_after_register_checkboxes( $manager ) { wc_gzd_register_legal_checkbox( array() ); } add_action( ‚woocommerce_gzd_register_legal_core_checkboxes‘, ‚ex_after_register_checkboxes‘, 10, 1 ); „`
$this\WC_GZD_Legal_Checkbox_Manager The legal checkbox manager instance.
add_action( "woocommerce_gzd_register_legal_core_checkboxes", function( $this ) {
// Do something
}, 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.
$checkbox_argsarray Arguments to be passed.$checkbox\WC_GZD_Legal_Checkbox Checkbox object.$checkbox_idstring The checkbox id.$instance\WC_GZD_Legal_Checkbox_Manager The checkbox manager instance.$contextstring The checkbox context
woocommerce_gzd_register_legal_checkboxes Action
Before legal checkbox registration. Register legal checkboxes and populate settings.
$this\WC_GZD_Legal_Checkbox_Manager The checkboxes manager instance.
add_action( "woocommerce_gzd_register_legal_checkboxes", function( $this ) {
// Do something
}, 10, 1 );
woocommerce_gzd_registered_legal_checkboxes Action
After legal checkbox registration. Fires after the registration is completed. Might be used to alter settings and registered checkboxes.
$this\WC_GZD_Legal_Checkbox_Manager The checkboxes manager instance.
add_action( "woocommerce_gzd_registered_legal_checkboxes", function( $this ) {
// Do something
}, 10, 1 );
woocommerce_gzd_legal_checkbox_locations Filter
Filter to add/remove legal checkbox locations.
$locationsarray Key => value array containing location id and title.
add_filter( "woocommerce_gzd_legal_checkbox_locations", function( $locations ) {
// Do something
return $locations;
}, 10, 1 );
woocommerce_gzd_register_legal_checkbox_args Filter
Filter legal checkbox arguments before registering.
$argsarray Arguments passed to register checkbox.$idint Checkbox id.
add_filter( "woocommerce_gzd_register_legal_checkbox_args", function( $args, $id ) {
// Do something
return $args;
}, 10, 2 );
woocommerce_gzd_legal_checkbox_classname Filter
Filter to adjust default checkbox classname. Defaults to `WC_GZD_Legal_Checkbox`.
$classnamestring The name of the checkbox classname.
add_filter( "woocommerce_gzd_legal_checkbox_classname", function( $classname ) {
// Do something
return $classname;
}, 10, 1 );
woocommerce_gzd_checkbox_is_logged Filter
$param_1string$param_2string$param_3string
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
$param_1string$param_2string$param_3string
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
$param_1string$param_2string$param_3string
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
$param_1array$param_2string
add_filter( "woocommerce_gzd_loggable_checkboxes", function( $param_1, $param_2 ) {
// Do something
return $param_1;
}, 10, 2 );
woocommerce_gzd_editable_checkboxes Filter
$param_1string$param_2string
add_filter( "woocommerce_gzd_editable_checkboxes", function( $param_1, $param_2 ) {
// Do something
return $param_1;
}, 10, 2 );
woocommerce_gzd_run_legal_checkboxes Action
Before render checkboxes. This hook is used to alter checkboxes before rendering and to dynamically choose whether to display or hide them.
$this\WC_GZD_Legal_Checkbox_Manager The checkboxes manager instance.
add_action( "woocommerce_gzd_run_legal_checkboxes", function( $this ) {
// Do something
}, 10, 1 );
woocommerce_gzd_run_legal_checkboxes_{$location} Action
Before render checkboxes location. This hook is used to alter checkboxes before rendering a specific location `$location` e.g. checkout and to dynamically choose whether to display or hide them.
$this\WC_GZD_Legal_Checkbox_Manager The checkboxes manager instance.
woocommerce_gzd_product_attribute_checkout_visible_default_value Filter
This filter is documented in includes/class-wc-gzd-product-attribute.php
$parambool
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
$parambool
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.
$htmlstring The label.
add_filter( "woocommerce_gzd_revocation_privacy_notice_label", function( $html ) {
// Do something
return $html;
}, 10, 1 );
woocommerce_gzd_revocation_fields Filter
$paramstring
add_filter( "woocommerce_gzd_revocation_fields", function( $param ) {
// Do something
return $param;
}, 10, 1 );
woocommerce_gzd_email_attachment_content_shortcodes_allowed Filter
$paramarray
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.
$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.
$enablebool Enable or disable the `the_content` filter.$contentstring The content.$param_3string
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
$paramstring
add_filter( "woocommerce_gzd_email_plain_content", function( $param ) {
// Do something
return $param;
}, 10, 1 );
woocommerce_gzd_product_warranties_email_product_ids Filter
$param_1string$param_2string$param_3string
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
$paramstring
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.
$emailbool|\WC_Email The current email instance.$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.
$needs_confirmationbool Needs confirmation or not.$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.
$argsarray 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
$parambool
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.
$enablebool Whether to enable searching or not.$domainstring 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
$param_1string$param_2string
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.
$titlestring The title.$order\WC_Order The order object.
add_filter( "woocommerce_gzd_email_title", function( $title, $order ) {
// Do something
return $title;
}, 10, 2 );