• Germanized
  • Hooks

Germanized Core

woocommerce_gzd_email_restore_locale Filter

  1. $param bool
add_filter( "woocommerce_gzd_email_restore_locale", function( $param ) {
    // Do something
    return $param;    
}, 10, 1 );

woocommerce_gzd_disable_on_hold_email Filter

Filter that allows re-enabling the on-hold order email which is by default replaced by the processing email used as order confirmation.

  1. $disable bool Whether to disable the on-hold email or not.
add_filter( "woocommerce_gzd_disable_on_hold_email", function( $disable ) {
    // Do something
    return $disable;    
}, 10, 1 );

woocommerce_germanized_taxonomy_objects_product_delivery_time Filter

Filter post types which are capable of storing delivery times.

  1. $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 );

woocommerce_germanized_taxonomy_args_product_delivery_time Filter

Filter to adjust arguments passed to register the `delivery_time` taxonomy.

  1. $args array Arguments passed to `register_taxonomy`.
add_filter( "woocommerce_germanized_taxonomy_args_product_delivery_time", function( $args ) {
    // Do something
    return $args;    
}, 10, 1 );

woocommerce_germanized_taxonomy_objects_product_unit Filter

Filter post types which are capable of storing units.

  1. $post_types array The post types to support `product_unit` taxonomy.
add_filter( "woocommerce_germanized_taxonomy_objects_product_unit", function( $post_types ) {
    // Do something
    return $post_types;    
}, 10, 1 );

woocommerce_germanized_taxonomy_args_product_unit Filter

Filter to adjust arguments passed to register the `product_unit` taxonomy.

  1. $args array Arguments passed to `register_taxonomy`.
add_filter( "woocommerce_germanized_taxonomy_args_product_unit", function( $args ) {
    // Do something
    return $args;    
}, 10, 1 );

woocommerce_germanized_taxonomy_objects_product_price_label Filter

Filter post types which are capable of storing price labels.

  1. $post_types array The post types to support `price_label` taxonomy.
add_filter( "woocommerce_germanized_taxonomy_objects_product_price_label", function( $post_types ) {
    // Do something
    return $post_types;    
}, 10, 1 );

woocommerce_germanized_taxonomy_args_product_price_label Filter

Filter to adjust arguments passed to register the `price_label` taxonomy.

  1. $args array Arguments passed to `register_taxonomy`.
add_filter( "woocommerce_germanized_taxonomy_args_product_price_label", function( $args ) {
    // Do something
    return $args;    
}, 10, 1 );

woocommerce_gzd_register_food_taxonomies Filter

  1. $param string
add_filter( "woocommerce_gzd_register_food_taxonomies", function( $param ) {
    // Do something
    return $param;    
}, 10, 1 );

woocommerce_germanized_taxonomy_objects_product_deposit_type Filter

Filter post types which are capable of storing deposit types.

  1. $post_types array The post types to support `product_deposit_type` taxonomy.
add_filter( "woocommerce_germanized_taxonomy_objects_product_deposit_type", function( $post_types ) {
    // Do something
    return $post_types;    
}, 10, 1 );

woocommerce_germanized_taxonomy_args_product_deposit_type Filter

Filter to adjust arguments passed to register the `product_deposit_type` taxonomy.

  1. $args array Arguments passed to `register_taxonomy`.
add_filter( "woocommerce_germanized_taxonomy_args_product_deposit_type", function( $args ) {
    // Do something
    return $args;    
}, 10, 1 );

woocommerce_gzd_show_food_ui Filter

  1. $param bool
add_filter( "woocommerce_gzd_show_food_ui", function( $param ) {
    // Do something
    return $param;    
}, 10, 1 );

woocommerce_germanized_taxonomy_objects_product_nutrient Filter

Filter post types which are capable of storing deposit types.

  1. $post_types array The post types to support `product_nutrient` taxonomy.
add_filter( "woocommerce_germanized_taxonomy_objects_product_nutrient", function( $post_types ) {
    // Do something
    return $post_types;    
}, 10, 1 );

woocommerce_germanized_taxonomy_args_product_nutrient Filter

Filter to adjust arguments passed to register the `product_nutrient` taxonomy.

  1. $args array Arguments passed to `register_taxonomy`.
add_filter( "woocommerce_germanized_taxonomy_args_product_nutrient", function( $args ) {
    // Do something
    return $args;    
}, 10, 1 );

woocommerce_germanized_taxonomy_objects_product_allergen Filter

Filter post types which are capable of storing allergenic.

  1. $post_types array The post types to support `product_allergen` taxonomy.
add_filter( "woocommerce_germanized_taxonomy_objects_product_allergen", function( $post_types ) {
    // Do something
    return $post_types;    
}, 10, 1 );

woocommerce_germanized_taxonomy_args_product_allergen Filter

Filter to adjust arguments passed to register the `product_allergen` taxonomy.

  1. $args array Arguments passed to `register_taxonomy`.
add_filter( "woocommerce_germanized_taxonomy_args_product_allergen", function( $args ) {
    // Do something
    return $args;    
}, 10, 1 );

woocommerce_gzd_direct_debit_ajax_url Filter

Filter to adjust the direct debit mandate link.

  1. $link string The link.
add_filter( "woocommerce_gzd_direct_debit_ajax_url", function( $link ) {
    // Do something
    return $link;    
}, 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.

  1. $checkbox_args array Arguments to be passed.
  2. $checkbox \WC_GZD_Legal_Checkbox Checkbox object.
  3. $checkbox_id string The checkbox id.
  4. $instance \WC_GZD_Legal_Checkbox_Manager The checkbox manager instance.

woocommerce_gzd_checkbox_is_logged Filter

  1. $param_1 string
  2. $param_2 string
  3. $param_3 string
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

  1. $param_1 string
  2. $param_2 string
  3. $param_3 string
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

  1. $param_1 string
  2. $param_2 string
  3. $param_3 string
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

  1. $param_1 array
  2. $param_2 string
add_filter( "woocommerce_gzd_loggable_checkboxes", function( $param_1, $param_2 ) {
    // Do something
    return $param_1;    
}, 10, 2 );

woocommerce_gzd_editable_checkboxes Filter

  1. $param_1 string
  2. $param_2 string
add_filter( "woocommerce_gzd_editable_checkboxes", function( $param_1, $param_2 ) {
    // Do something
    return $param_1;    
}, 10, 2 );

woocommerce_gzd_order_min_age Filter

Filters the minimum age required for a certain order.

  1. $min_age int|bool The minimum age for an order. False if not available.
  2. $order_id int The order id
add_filter( "woocommerce_gzd_order_min_age", function( $min_age, $order_id ) {
    // Do something
    return $min_age;    
}, 10, 2 );

woocommerce_gzd_shortcode_product_unit_price_html Filter

Filter shortcode product unit price output.

  1. $html string The output.
  2. $atts array The shortcode arguments.
add_filter( "woocommerce_gzd_shortcode_product_unit_price_html", function( $html, $atts ) {
    // Do something
    return $html;    
}, 10, 2 );

woocommerce_gzd_shortcode_product_units_html Filter

Filter shortcode product unit output.

  1. $html string The output.
  2. $atts array The shortcode arguments.
add_filter( "woocommerce_gzd_shortcode_product_units_html", function( $html, $atts ) {
    // Do something
    return $html;    
}, 10, 2 );

woocommerce_gzd_shortcode_product_delivery_time_html Filter

Filter shortcode product delivery time output.

  1. $html string The output.
  2. $atts array The shortcode arguments.
add_filter( "woocommerce_gzd_shortcode_product_delivery_time_html", function( $html, $atts ) {
    // Do something
    return $html;    
}, 10, 2 );

woocommerce_gzd_shortcode_product_tax_notice_html Filter

Filter shortcode product tax notice output.

  1. $html string The output.
  2. $atts array The shortcode arguments.
add_filter( "woocommerce_gzd_shortcode_product_tax_notice_html", function( $html, $atts ) {
    // Do something
    return $html;    
}, 10, 2 );

woocommerce_gzd_shortcode_product_shipping_notice_html Filter

Filter shortcode product shipping notice output.

  1. $html string The output.
  2. $atts array The shortcode arguments.
add_filter( "woocommerce_gzd_shortcode_product_shipping_notice_html", function( $html, $atts ) {
    // Do something
    return $html;    
}, 10, 2 );

woocommerce_gzd_shortcode_product_defect_description_html Filter

Filter shortcode product defect description output.

  1. $html string The output.
  2. $atts array The shortcode arguments.
add_filter( "woocommerce_gzd_shortcode_product_defect_description_html", function( $html, $atts ) {
    // Do something
    return $html;    
}, 10, 2 );

woocommerce_gzd_shortcode_product_deposit_html Filter

Filter shortcode product deposit output.

  1. $html string The output.
  2. $atts array The shortcode arguments.
add_filter( "woocommerce_gzd_shortcode_product_deposit_html", function( $html, $atts ) {
    // Do something
    return $html;    
}, 10, 2 );

woocommerce_gzd_shortcode_product_food_html Filter

Filter shortcode product food output.

  1. $html string The output.
  2. $atts array The shortcode arguments.
  3. $param_3 string
add_filter( "woocommerce_gzd_shortcode_product_food_html", function( $html, $atts, $param_3 ) {
    // Do something
    return $html;    
}, 10, 3 );

woocommerce_gzd_shortcode_product_deposit_packaging_type_html Filter

Filter shortcode product deposit packaging type output.

  1. $html string The output.
  2. $atts array The shortcode arguments.
add_filter( "woocommerce_gzd_shortcode_product_deposit_packaging_type_html", function( $html, $atts ) {
    // Do something
    return $html;    
}, 10, 2 );

woocommerce_gzd_revocation_show_privacy_notice_checkbox Filter

  1. $param bool
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.

  1. $html string The label.
add_filter( "woocommerce_gzd_revocation_privacy_notice_label", function( $html ) {
    // Do something
    return $html;    
}, 10, 1 );

woocommerce_gzd_revocation_fields Filter

  1. $param string
add_filter( "woocommerce_gzd_revocation_fields", function( $param ) {
    // Do something
    return $param;    
}, 10, 1 );

woocommerce_gzd_check_virtual_vat_exempt Filter

  1. $param_1 bool
  2. $param_2 string
  3. $param_3 string
add_filter( "woocommerce_gzd_check_virtual_vat_exempt", function( $param_1, $param_2, $param_3 ) {
    // Do something
    return $param_1;    
}, 10, 3 );

woocommerce_gzd_force_tax_location_vat_base_rates Filter

Filter to adjust whether virtual VAT is applicable or not. If set to true, Germanized will return tax rates based on the user country.

  1. $virtual_vat_applicable bool Whether virtual VAT rates are applicable or not.
  2. $tax_class string The tax class.
  3. $location array The tax location data.
add_filter( "woocommerce_gzd_force_tax_location_vat_base_rates", function( $virtual_vat_applicable, $tax_class, $location ) {
    // Do something
    return $virtual_vat_applicable;    
}, 10, 3 );

woocommerce_gzd_get_checkout_value Filter

  1. $param_1 string
  2. $param_2 string
add_filter( "woocommerce_gzd_get_checkout_value", function( $param_1, $param_2 ) {
    // Do something
    return $param_1;    
}, 10, 2 );

woocommerce_gzd_checkout_checkbox_is_checked Filter

  1. $param_1 string
  2. $param_2 string
add_filter( "woocommerce_gzd_checkout_checkbox_is_checked", function( $param_1, $param_2 ) {
    // Do something
    return $param_1;    
}, 10, 2 );

woocommerce_gzd_photovoltaic_systems_remove_zero_tax_class_for_non_exemptions Filter

  1. $param string
add_filter( "woocommerce_gzd_photovoltaic_systems_remove_zero_tax_class_for_non_exemptions", function( $param ) {
    // Do something
    return $param;    
}, 10, 1 );

woocommerce_gzd_default_photovoltaic_systems_non_exemption_tax_class Filter

  1. $param_1 string
  2. $param_2 string
add_filter( "woocommerce_gzd_default_photovoltaic_systems_non_exemption_tax_class", function( $param_1, $param_2 ) {
    // Do something
    return $param_1;    
}, 10, 2 );