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
$paramstring
add_filter( "woocommerce_gzd_is_woocommerce_activated", function( $param ) {
// Do something
return $param;
}, 10, 1 );
woocommerce_gzd_plugins_install_api_error Action
$param_1string$param_2string
add_action( "woocommerce_gzd_plugins_install_api_error", function( $param_1, $param_2 ) {
// Do something
}, 10, 2 );
woocommerce_gzd_plugins_install_error Action
$param_1string$param_2string$param_3string$param_4string
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_1string$param_2string
add_action( "woocommerce_gzd_plugins_activate_error", function( $param_1, $param_2 ) {
// Do something
}, 10, 2 );
woocommerce_gzd_disable_mini_cart_block_adjustments Filter
$parambool
add_filter( "woocommerce_gzd_disable_mini_cart_block_adjustments", function( $param ) {
// Do something
return $param;
}, 10, 1 );
woocommerce_gzd_show_mini_cart_totals_shipping_costs_notice Filter
$paramstring
add_filter( "woocommerce_gzd_show_mini_cart_totals_shipping_costs_notice", function( $param ) {
// Do something
return $param;
}, 10, 1 );
woocommerce_gzd_show_mini_cart_totals_tax_notice Filter
$paramstring
add_filter( "woocommerce_gzd_show_mini_cart_totals_tax_notice", function( $param ) {
// Do something
return $param;
}, 10, 1 );
woocommerce_gzd_small_business_show_total_vat_notice Filter
Filter to show incl. VAT for small business after order/cart total. This filter serves for shops which want to enable a incl. VAT notice for small businesses. Some institutions (e.g. Händlerbund) state that this is necessary. „`php function ex_enable_small_business_vat_notice() { return true; } add_filter( ‚woocommerce_gzd_small_business_show_total_vat_notice‘, ‚ex_enable_small_business_vat_notice‘, 10 ); „`
$enablebool Whether to enable the notice or not.
add_filter( "woocommerce_gzd_small_business_show_total_vat_notice", function( $enable ) {
// Do something
return $enable;
}, 10, 1 );
woocommerce_gzd_cart_checkout_needs_block_price_labels Filter
$paramstring
add_filter( "woocommerce_gzd_cart_checkout_needs_block_price_labels", function( $param ) {
// Do something
return $param;
}, 10, 1 );
woocommerce_gzd_disable_checkout_block_adjustments Filter
$parambool
add_filter( "woocommerce_gzd_disable_checkout_block_adjustments", function( $param ) {
// Do something
return $param;
}, 10, 1 );
woocommerce_gzd_checkout_validate_billing_street_number Filter
$parambool
add_filter( "woocommerce_gzd_checkout_validate_billing_street_number", function( $param ) {
// Do something
return $param;
}, 10, 1 );
woocommerce_gzd_checkout_validate_street_number Filter
$param_1bool$param_2string
add_filter( "woocommerce_gzd_checkout_validate_street_number", function( $param_1, $param_2 ) {
// Do something
return $param_1;
}, 10, 2 );
woocommerce_gzd_checkout_is_valid_street_number Filter
$param_1string$param_2string
add_filter( "woocommerce_gzd_checkout_is_valid_street_number", function( $param_1, $param_2 ) {
// Do something
return $param_1;
}, 10, 2 );
woocommerce_gzd_checkout_invalid_street_number_error_message Filter
$param_1string$param_2string
add_filter( "woocommerce_gzd_checkout_invalid_street_number_error_message", function( $param_1, $param_2 ) {
// Do something
return $param_1;
}, 10, 2 );
woocommerce_gzd_checkout_block_checkboxes_force_print_checkboxes Filter
$paramstring
add_filter( "woocommerce_gzd_checkout_block_checkboxes_force_print_checkboxes", function( $param ) {
// Do something
return $param;
}, 10, 1 );
woocommerce_gzd_container_loaded Action
add_action( "woocommerce_gzd_container_loaded", function( ) {
// Do something
}, 10 );
woocommerce_gzd_shopmark_single_product_defaults Filter
Filter to adjust default shopmark configuration for the single product page.
$defaultsarray 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.
$defaultsarray 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.
$defaultsarray 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.
$defaultsarray 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.
$defaultsarray 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).
$defaultsarray 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.
$defaultsarray 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).
$defaultsarray 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_namesarray 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_namesarray Array containing available shopmark types.
woocommerce_gzd_deposit_packaging_types Filter
$paramarray
add_filter( "woocommerce_gzd_deposit_packaging_types", function( $param ) {
// Do something
return $param;
}, 10, 1 );
woocommerce_gzd_deposit_packaging_type_title Filter
$param_1string$param_2string
add_filter( "woocommerce_gzd_deposit_packaging_type_title", function( $param_1, $param_2 ) {
// Do something
return $param_1;
}, 10, 2 );
woocommerce_gzd_order_item_product_deposit_packaging_type_title Filter
Filter to adjust the deposit packaging type title for an order item.
$titlestring The title.$order_item\WC_GZD_Order_Item_Product The order item product object.
add_filter( "woocommerce_gzd_order_item_product_deposit_packaging_type_title", function( $title, $order_item ) {
// Do something
return $title;
}, 10, 2 );
woocommerce_gzd_order_item_product_units_html Filter
Filter to adjust the product units HTML output.
$htmlstring The HTML output.$order_item\WC_GZD_Order_Item_Product The order item product object.
add_filter( "woocommerce_gzd_order_item_product_units_html", function( $html, $order_item ) {
// Do something
return $html;
}, 10, 2 );
woocommerce_gzd_order_item_quantity Filter
Determines the quantity used to calculate the item total used for unit price (re-) calculation for an order item.
$quantityfloat The item quantity.$gzd_order_item\WC_GZD_Order_Item_Product Germanized order item instance.$order_item\WC_Order_Item_Product The order item instance.
add_filter( "woocommerce_gzd_order_item_quantity", function( $quantity, $gzd_order_item, $order_item ) {
// Do something
return $quantity;
}, 10, 3 );
woocommerce_gzd_recalculate_order_item_unit_price Action
Order item unit price recalculation This action fires before recalculating unit price for a certain order item (e.g. when taxes are recalculated).
$order_item\WC_Order_Item_Product$gzd_order_item\WC_GZD_Order_Item_Product
add_action( "woocommerce_gzd_recalculate_order_item_unit_price", function( $order_item, $gzd_order_item ) {
// Do something
}, 10, 2 );
woocommerce_gzd_template_check Filter
Filter to include certain packages or plugins while checking for outdated templates.
$template_dataarray Template data in key => value pairs.
add_filter( "woocommerce_gzd_template_check", function( $template_data ) {
// Do something
return $template_data;
}, 10, 1 );
woocommerce_gzd_sync_wp_privacy_page Filter
This filter is documented in includes/admin/class-wc-gzd-admin.php
$parambool
add_filter( "woocommerce_gzd_sync_wp_privacy_page", function( $param ) {
// Do something
return $param;
}, 10, 1 );
woocommerce_gzd_after_resend_order_confirmation_email Action
Admin manual resend order confirmation email. This hook fires after a manual resend of the order confirmation email has been triggered.
$order\WC_Order The order for which the confirmation email is sent.$mail_idstring The email id (customer_processing_order).
add_action( "woocommerce_gzd_after_resend_order_confirmation_email", function( $order, $mail_id ) {
// Do something
}, 10, 2 );
woocommerce_gzd_admin_assets Action
After admin assets. This hook fires after Germanized has loaded and enqueued it’s admin assets.
$this\WC_GZD_Admin The admin class.
add_action( "woocommerce_gzd_admin_assets", function( $this ) {
// Do something
}, 10, 1 );
woocommerce_gzd_deleted_text_options Action
After text options deletion. This hook fires after Germanized has deleted and re-installed it’s text options.
add_action( "woocommerce_gzd_deleted_text_options", function( ) {
// Do something
}, 10 );
woocommerce_gzd_settings_section_before_checkbox_options_{$checkbox_id} Action
Before output admin checkbox settings. Fires before a checkbox admin settings screen is rendered.
$checkbox\WC_GZD_Legal_Checkbox The checkbox instance.
woocommerce_gzd_settings_section_after_checkbox_options_{$checkbox_id} Action
After output admin checkbox settings. Fires after a checkbox admin settings screen is rendered.
$checkbox\WC_GZD_Legal_Checkbox The checkbox instance.
woocommerce_gzd_admin_settings_before_{$current_tab_name} Action
Before admin tab settings output. Executes right before setting output for a specific admin setting tab `$tab_name` e.g. shopmarks.
$paramstring
woocommerce_gzd_admin_settings_before_{$current_tab_name}_{$current_section} Action
Before admin tab section settings output. Executes right before setting output for a specific admin setting tab `$tab_name` e.g. shopmarks. `$current_section` refers to the current section e.g. product_widgets.
$settingsarray[] The settings array.
woocommerce_gzd_admin_settings_after_{$current_tab_name} Action
After admin tab settings output. Executes right after setting output for a specific admin setting tab `$tab_name` e.g. shopmarks.
$settingsarray[] The settings array.
woocommerce_gzd_admin_settings_after_{$current_tab_name}_{$current_section} Action
After admin tab section settings output. Executes right after setting output for a specific admin setting tab `$tab_name` e.g. shopmarks. `$current_section` refers to the current section e.g. product_widgets.
$settingsarray[] The settings array.
woocommerce_gzd_admin_settings_styles Action
This action indicates that the admin settings styles are enqueued.
add_action( "woocommerce_gzd_admin_settings_styles", function( ) {
// Do something
}, 10 );
woocommerce_gzd_admin_settings_scripts Action
This action indicates that the admin settings scripts are enqueued.
add_action( "woocommerce_gzd_admin_settings_scripts", function( ) {
// Do something
}, 10 );
woocommerce_gzd_admin_settings_tabs Filter
Filter to register or remove certain setting tabs from the Germanized settings screen. Make sure that your class is loaded before adding it to the tabs array.
$tabsarray Array containing key => value pairs of tab name and class name.
add_filter( "woocommerce_gzd_admin_settings_tabs", function( $tabs ) {
// Do something
return $tabs;
}, 10, 1 );
woocommerce_gzd_admin_settings_tab_$postfix_breadcrumb Filter
Filter to adjust the breadcrumb items for a certain settings tab. The dynamic portion of the hook name, `$this->get_name()` refers to the tab name e.g. checkboxes.
$breadcrumbarray Array containing breadcrumb data.
woocommerce_gzd_admin_settings_tab_$postfix Filter
Filter to adjust the settings for a certain settings tab. The dynamic portion of the hook name, `$this->get_name()` refers to the tab name e.g. checkboxes.
$settingsarray Array containing settings data.
woocommerce_gzd_admin_settings_tab_$postfix_{$section_id} Filter
Filter to adjust the settings for a certain section of a settings tab. The dynamic portion of the hook name, `$this->get_name()` refers to the tab name e.g. checkboxes. `$current_section` refers to the current section e.g. product_widget.
$settingsarray Array containing settings data.