woocommerce_gzd_reload_locale Action
Reload locale. Fires after Germanized plugin textdomain was reloaded programmatically.
add_action( "woocommerce_gzd_reload_locale", function( ) { // Do something }, 10 );
woocommerce_gzd_wpml_switched_language Action
WPML language switched. Fires whenever Germanized has explicitly changed the language.
$lang
string The new language code.$wc_gzd_original_lang
string The old language code.
add_action( "woocommerce_gzd_wpml_switched_language", function( $lang, $wc_gzd_original_lang ) { // Do something }, 10, 2 );
woocommerce_gzd_wpml_switch_language Action
WPML language switch. Fires whenever Germanized was asked to programatically change the language.
$lang
string The new language code.$wc_gzd_original_lang
string The old language code.
add_action( "woocommerce_gzd_wpml_switch_language", function( $lang, $wc_gzd_original_lang ) { // Do something }, 10, 2 );
woocommerce_gzd_woo_discount_rules_simple_product_price_target Filter
$param
string
add_filter( "woocommerce_gzd_woo_discount_rules_simple_product_price_target", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_woo_discount_rules_variable_product_price_target Filter
$param
string
add_filter( "woocommerce_gzd_woo_discount_rules_variable_product_price_target", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_override_subscriptions_signup_button_text Filter
$param
bool
add_filter( "woocommerce_gzd_override_subscriptions_signup_button_text", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_show_tax_for_cart_subscription_price Filter
$param
bool
add_filter( "woocommerce_gzd_show_tax_for_cart_subscription_price", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_double_opt_resent_activation_redirect Filter
$param_1
string$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
$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.
$url
string The redirection URL.$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 ); „`
$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.
$supports_double_opt_in
bool 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
$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.
$delete
bool 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_1
array$param_2
string$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.
$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.
$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_1
string$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.
$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.
$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.
$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_germanized_before_load Action
Before startup. This hook fires right before Germanized includes relevant files for startup.
add_action( "woocommerce_germanized_before_load", function( ) { // Do something }, 10 );
woocommerce_germanized_loaded Action
After startup. This hook fires right after all relevant files for Germanized has been loaded.
add_action( "woocommerce_germanized_loaded", function( ) { // Do something }, 10 );
woocommerce_germanized_init Action
Initialized Germanized This hook fires after Germanized has been initialized e.g. textdomain has been loaded and relevant have been placed.
add_action( "woocommerce_germanized_init", function( ) { // Do something }, 10 );
woocommerce_gzd_template_path Filter
Filter the default Germanized template path folder. „`php function ex_filter_template_path( $path ) { return ‚woocommerce-germanized-test/‘; } add_filter( ‚woocommerce_gzd_template_path‘, ‚ex_filter_template_path‘, 10, 1 ); „`
$path
string The relative path within your theme directory.
add_filter( "woocommerce_gzd_template_path", function( $path ) { // Do something return $path; }, 10, 1 );
woocommerce_gzd_is_rest_api_request Filter
$param
string
add_filter( "woocommerce_gzd_is_rest_api_request", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_compatibilities Filter
Filter compatibility classes. This filter allows third party developers to register compatibility scripts for certain plugins. Make sure to include your class accordingly before adding your script.
$param
array
add_filter( "woocommerce_gzd_compatibilities", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_theme_compatibilities Filter
Filter theme compatibility classes. This filter allows third party developers to register compatibility scripts for certain themes. Make sure to include your class accordingly before adding your script.
$param
array
add_filter( "woocommerce_gzd_theme_compatibilities", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_templates_requiring_variation_script Filter
$param
array
add_filter( "woocommerce_gzd_templates_requiring_variation_script", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_template_name Filter
Filters the template name.
$template_name
string The template name e.g. checkboxes/default.php
add_filter( "woocommerce_gzd_template_name", function( $template_name ) { // Do something return $template_name; }, 10, 1 );
woocommerce_gzd_default_plugin_template Filter
Filter the default plugin template file. This file is being loaded as a default template if no theme template was found.
$param_1
string$param_2
string
add_filter( "woocommerce_gzd_default_plugin_template", function( $param_1, $param_2 ) { // Do something return $param_1; }, 10, 2 );
woocommerce_germanized_filter_template Filter
Filters the actual loaded template. This filter allows filtering the located template path (whether theme or plugin).
$param_1
string$param_2
string$param_3
string
add_filter( "woocommerce_germanized_filter_template", function( $param_1, $param_2, $param_3 ) { // Do something return $param_1; }, 10, 3 );
woocommerce_gzd_important_templates Filter
Filters critical template which should be prevented from overriding.
$templates
array Array containing the template names.
add_filter( "woocommerce_gzd_important_templates", function( $templates ) { // Do something return $templates; }, 10, 1 );
woocommerce_gzd_force_de_language Filter
$param
string
add_filter( "woocommerce_gzd_force_de_language", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_german_language_variant_locale Filter
$param
string
add_filter( "woocommerce_gzd_german_language_variant_locale", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_registered_scripts Action
Register frontend scripts and styles. This hook executes right after Germanized has registered and enqueued relevant scripts and styles for the frontend.
add_action( "woocommerce_gzd_registered_scripts", function( ) { // Do something }, 10 );
woocommerce_gzd_deposit_packaging_type_font_size_css Filter
$param
string
add_filter( "woocommerce_gzd_deposit_packaging_type_font_size_css", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_add_to_cart_variation_params Filter
$param
array
add_filter( "woocommerce_gzd_add_to_cart_variation_params", function( $param ) { // Do something return $param; }, 10, 1 );
wc_gzd_revocation_params Filter
$param
array
add_filter( "wc_gzd_revocation_params", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_unit_price_observer_price_selectors Filter
Allow multiple price selectors to be observed
$param
array
add_filter( "woocommerce_gzd_unit_price_observer_price_selectors", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_unit_price_observer_params Filter
Filters script localization paramaters for the `wc-gzd-unit-price-observer` script.
$params
array Key => value array containing parameter name and value.
add_filter( "woocommerce_gzd_unit_price_observer_params", function( $params ) { // Do something return $params; }, 10, 1 );
wc_gzd_force_pay_order_params Filter
$param
array
add_filter( "wc_gzd_force_pay_order_params", function( $param ) { // Do something return $param; }, 10, 1 );
wc_gzd_cart_voucher_params Filter
$param
string
add_filter( "wc_gzd_cart_voucher_params", function( $param ) { // Do something return $param; }, 10, 1 );
wc_gzd_checkout_params Filter
$param
array
add_filter( "wc_gzd_checkout_params", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_localized_scripts Action
Localized scripts. This hook fires after Germanized has localized it’s scripts.
add_action( "woocommerce_gzd_localized_scripts", function( ) { // Do something }, 10 );
woocommerce_germanized_email_template_hook Filter
Filters email templates.
$core_file
string The core template file.$template
string The template name.$template_base
string The template base folder.
add_filter( "woocommerce_germanized_email_template_hook", function( $core_file, $template, $template_base ) { // Do something return $core_file; }, 10, 3 );
woocommerce_gzd_product_safety_heading Filter
$param
string
add_filter( "woocommerce_gzd_product_safety_heading", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_single_product_safety_information Action
add_action( "woocommerce_gzd_single_product_safety_information", function( ) { // Do something }, 10 );
woocommerce_gzd_product_product_safety_attachments_heading Filter
$param
string
add_filter( "woocommerce_gzd_product_product_safety_attachments_heading", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_after_revocation_form_fields Action
After revocation form fields. Executes after outputting revocation form fields.
add_action( "woocommerce_gzd_after_revocation_form_fields", function( ) { // Do something }, 10 );