A list of Hooks available in Germanized Core. Please mind that dynamic hooks, e.g. Hooks created based on specific object types might not be part of this list.
woocommerce_gzd_is_woocommerce_activated Filter
$param
string
add_filter( "woocommerce_gzd_is_woocommerce_activated", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_plugins_install_api_error Action
$param_1
string$param_2
string
add_action( "woocommerce_gzd_plugins_install_api_error", function( $param_1, $param_2 ) { // Do something }, 10, 2 );
woocommerce_gzd_plugins_install_error Action
$param_1
string$param_2
string$param_3
string$param_4
string
add_action( "woocommerce_gzd_plugins_install_error", function( $param_1, $param_2, $param_3, $param_4 ) { // Do something }, 10, 4 );
woocommerce_gzd_plugins_activate_error Action
$param_1
string$param_2
string
add_action( "woocommerce_gzd_plugins_activate_error", function( $param_1, $param_2 ) { // Do something }, 10, 2 );
woocommerce_gzd_shopmark_single_product_defaults Filter
Filter to adjust default shopmark configuration for the single product page.
$defaults
array Array containing the default configuration.
add_filter( "woocommerce_gzd_shopmark_single_product_defaults", function( $defaults ) { // Do something return $defaults; }, 10, 1 );
woocommerce_gzd_shopmark_single_product_grouped_defaults Filter
Filter to adjust default shopmark configuration for the single product page specifically for grouped products.
$defaults
array Array containing the default configuration.
add_filter( "woocommerce_gzd_shopmark_single_product_grouped_defaults", function( $defaults ) { // Do something return $defaults; }, 10, 1 );
woocommerce_gzd_shopmark_product_loop_defaults Filter
Filter to adjust default shopmark configuration for the product loop.
$defaults
array Array containing the default configuration.
add_filter( "woocommerce_gzd_shopmark_product_loop_defaults", function( $defaults ) { // Do something return $defaults; }, 10, 1 );
woocommerce_gzd_shopmark_product_block_defaults Filter
Filter to adjust default shopmark configuration for product grid blocks.
$defaults
array Array containing the default configuration.
add_filter( "woocommerce_gzd_shopmark_product_block_defaults", function( $defaults ) { // Do something return $defaults; }, 10, 1 );
woocommerce_gzd_shopmark_cart_defaults Filter
Filter to adjust default shopmark configuration for the cart.
$defaults
array Array containing the default configuration.
add_filter( "woocommerce_gzd_shopmark_cart_defaults", function( $defaults ) { // Do something return $defaults; }, 10, 1 );
woocommerce_gzd_shopmark_mini_cart_defaults Filter
Filter to adjust default shopmark configuration for the mini cart (cart dropdown).
$defaults
array Array containing the default configuration.
add_filter( "woocommerce_gzd_shopmark_mini_cart_defaults", function( $defaults ) { // Do something return $defaults; }, 10, 1 );
woocommerce_gzd_shopmark_checkout_defaults Filter
Filter to adjust default shopmark configuration for the checkout.
$defaults
array Array containing the default configuration.
add_filter( "woocommerce_gzd_shopmark_checkout_defaults", function( $defaults ) { // Do something return $defaults; }, 10, 1 );
woocommerce_gzd_shopmark_order_defaults Filter
Filter to adjust default shopmark configuration for the order (thankyou, pay for order).
$defaults
array Array containing the default configuration.
add_filter( "woocommerce_gzd_shopmark_order_defaults", function( $defaults ) { // Do something return $defaults; }, 10, 1 );
woocommerce_gzd_shopmark_{$location}_filters Filter
Filter to adjust available hook names for a certain location. The dynamic portion of the hook name, `$location` refers to the shopmark location e.g. single_product
$hook_names
array Array containing available hook names.
woocommerce_gzd_shopmark_{$location}_types Filter
Filter to adjust available shopmark types e.g. unit_price for a certain location. The dynamic portion of the hook name, `$location` refers to the shopmark location e.g. single_product
$hook_names
array Array containing available shopmark types.
woocommerce_gzd_review_order_before_cart_contents Action
Before review order product table. Fires before rendering the checkout review order product table. This additional template replaces Woo’s default product table within review-order.php.
add_action( "woocommerce_gzd_review_order_before_cart_contents", function( ) { // Do something }, 10 );
woocommerce_gzd_photovoltaic_systems_vat_exemption_available_notice Filter
$param
string
add_filter( "woocommerce_gzd_photovoltaic_systems_vat_exemption_available_notice", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_review_order_before_submit Action
Before review order submit button. This hooks fires right before outputting the order submit button.
add_action( "woocommerce_gzd_review_order_before_submit", function( ) { // Do something }, 10 );
woocommerce_gzd_before_legal_checkbox_{$checkbox_id} Action
Before render checkbox template. Fires before a checkbox with `$checkbox_id` is rendered.
$checkbox
\WC_GZD_Legal_Checkbox The checkbox instance.
woocommerce_germanized_checkout_show_terms Filter
Filter that allows hiding the terms checkbox in checkout.
$hide
bool Whether to hide the terms checkbox.
add_filter( "woocommerce_germanized_checkout_show_terms", function( $hide ) { // Do something return $hide; }, 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 );
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_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_refresh_unit_price_on_price_change Filter
$param
bool
add_filter( "woocommerce_gzd_refresh_unit_price_on_price_change", 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.
$suffix
string The asset suffix e.g. .min in non-debugging mode.$frontend_script_path
string The absolute URL to the plugins JS files.$assets_path
string The absolute URL to the plugins asset files.
add_action( "woocommerce_gzd_registered_scripts", function( $suffix, $frontend_script_path, $assets_path ) { // Do something }, 10, 3 );
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 );
woocommerce_gzd_voucher_name Filter
$param_1
string$param_2
string
add_filter( "woocommerce_gzd_voucher_name", function( $param_1, $param_2 ) { // Do something return $param_1; }, 10, 2 );
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_fee_supporting_gateways Filter
$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.
$button_text
string The static button text from within the options.$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.
$html
string The description.$gateway
\WC_Payment_Gateway The gateway instance.
add_filter( "woocommerce_gzd_payment_gateway_description", function( $html, $gateway ) { // Do something return $html; }, 10, 2 );
woocommerce_germanized_taxonomy_objects_product_delivery_time Filter
Filter post types which are capable of storing delivery times.
$post_types
array The post types to support `delivery_time` taxonomy.
add_filter( "woocommerce_germanized_taxonomy_objects_product_delivery_time", function( $post_types ) { // Do something return $post_types; }, 10, 1 );