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_disable_mini_cart_block_adjustments Filter
$param
bool
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
$param
string
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
$param
string
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 ); „`
$enable
bool 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
$param
string
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
$param
bool
add_filter( "woocommerce_gzd_disable_checkout_block_adjustments", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_checkout_validate_billing_street_number Filter
$param
bool
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_1
bool$param_2
string
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_1
string$param_2
string
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_1
string$param_2
string
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
$param
string
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.
$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_deposit_packaging_types Filter
$param
array
add_filter( "woocommerce_gzd_deposit_packaging_types", function( $param ) { // Do something return $param; }, 10, 1 );
woocommerce_gzd_deposit_packaging_type_title Filter
$param_1
string$param_2
string
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.
$title
string 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.
$html
string 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.
$quantity
float 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_data
array 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
$param
bool
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_id
string 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.
$param
string
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.
$settings
array[] 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.
$settings
array[] 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.
$settings
array[] 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.
$tabs
array 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.
$breadcrumb
array 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.
$settings
array 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.
$settings
array Array containing settings data.