• Germanized
  • Hooks

Germanized Core

woocommerce_gzd_order_confirmation_email_plain_text Filter

Filters the plain order confirmation email text.

  1. $text string The plain text.
add_filter( "woocommerce_gzd_order_confirmation_email_plain_text", function( $text ) {
    // Do something
    return $text;    
}, 10, 1 );

woocommerce_gzd_order_confirmation_email_default_text Filter

Filter the fallback order confirmation email text.

  1. $text string The default text.
add_filter( "woocommerce_gzd_order_confirmation_email_default_text", function( $text ) {
    // Do something
    return $text;    
}, 10, 1 );

woocommerce_gzd_order_confirmation_email_text Filter

Filter the order confirmation introduction text.

  1. $plain string The text.
  2. $order \WC_Order The order object.
add_filter( "woocommerce_gzd_order_confirmation_email_text", function( $plain, $order ) {
    // Do something
    return $plain;    
}, 10, 2 );

woocommerce_gzd_send_order_confirmation_for_manual_order Filter

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

woocommerce_gzd_send_order_confirmation_for_rest_api_orders Filter

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

woocommerce_gzd_disable_gateways_paid_order_email Filter

Filters disabled gateway for the paid for order notification. By adjusting the filter you may deactivate the paid for order notification for certain gateways.

  1. $gateways array Array of gateway ids.
add_filter( "woocommerce_gzd_disable_gateways_paid_order_email", function( $gateways ) {
    // Do something
    return $gateways;    
}, 10, 1 );

woocommerce_gzd_disable_paid_for_order_notification Filter

Filter to adjust whether to disable the paid for order notification based on order data.

  1. $disable bool Whether to disable notification or not.
  2. $order_id int The order id.
add_filter( "woocommerce_gzd_disable_paid_for_order_notification", function( $disable, $order_id ) {
    // Do something
    return $disable;    
}, 10, 2 );

woocommerce_gzd_checkout_order_before_confirmation Action

Triggers after WooCommerce has processed the order via checkout and payment gateway has been processed. This hook may be used to find a uniform way to process orders after the payment method has been triggered.

  1. $order \WC_Order The order object.
add_action( "woocommerce_gzd_checkout_order_before_confirmation", function( $order ) {
    // Do something
        
}, 10, 1 );

woocommerce_germanized_send_instant_order_confirmation Filter

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

woocommerce_gzd_order_confirmation Action

Trigger the order confirmation email. This action triggers the order confirmation email notification.

  1. $order \WC_Order The order object.
add_action( "woocommerce_gzd_order_confirmation", function( $order ) {
    // Do something
        
}, 10, 1 );

woocommerce_gzd_clear_cart_after_order_confirmation Filter

Decide whether to clear the cart after sending the order confirmation email or not. By default the cart is not cleared to prevent compatibility issues with payment providers like Stripe or Klarna which depend on cart data.

  1. $clear bool Whether to clear cart or not.
  2. $order_id \WC_Order The order.
add_filter( "woocommerce_gzd_clear_cart_after_order_confirmation", function( $clear, $order_id ) {
    // Do something
    return $clear;    
}, 10, 2 );

woocommerce_germanized_before_order_confirmation Action

Before order confirmation emails. Fires before the order confirmation emails are being triggered (admin and user).

  1. $order_id int The order id.
add_action( "woocommerce_germanized_before_order_confirmation", function( $order_id ) {
    // Do something
        
}, 10, 1 );

woocommerce_germanized_order_email_customer_confirmation_sent Filter

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

woocommerce_germanized_order_email_admin_confirmation_sent Filter

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

woocommerce_germanized_order_confirmation_sent Action

After order confirmation emails. Fires after the order confirmation emails are being triggered (admin and user).

  1. $order_id int The order id.
add_action( "woocommerce_germanized_order_confirmation_sent", function( $order_id ) {
    // Do something
        
}, 10, 1 );

woocommerce_gzd_product_is_revocation_exception Filter

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

woocommerce_gzd_show_differential_taxation_in_emails Filter

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

woocommerce_gzd_differential_taxation_notice_text_email Filter

Filters the differential taxation notice text for emails.

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

woocommerce_gzd_order_confirmation_digital_notice Filter

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

woocommerce_gzd_order_confirmation_service_notice Filter

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

woocommerce_gzd_is_order_confirmation_email Filter

Filters whether a certain email id equals the order confirmation email.

  1. $is_confirmation bool Whether the `$id` matches the order confirmation or not.
  2. $id string The email id.
add_filter( "woocommerce_gzd_is_order_confirmation_email", function( $is_confirmation, $id ) {
    // Do something
    return $is_confirmation;    
}, 10, 2 );

woocommerce_gzd_before_set_email_cart_item_filters Action

Before place email cart item filters. This hook fires before Germanized places certain cart item filters to make sure that product-related info (e.g. delivery time, unit price etc.) is shown within email tables.

  1. $this \WC_GZD_Emails The email helper class.
  2. $current \WC_Email The current email object.
  3. $sent_to_admin bool Whether this mail is being sent to admin or not.
add_action( "woocommerce_gzd_before_set_email_cart_item_filters", function( $this, $current, $sent_to_admin ) {
    // Do something
        
}, 10, 3 );

woocommerce_gzd_after_set_email_cart_item_filters Action

After place email cart item filters. This hook fires after Germanized placed certain cart item filters.

  1. $this \WC_GZD_Emails The email helper class.
  2. $current \WC_Email The current email object.
  3. $sent_to_admin bool Whether this mail is being sent to admin or not.
add_action( "woocommerce_gzd_after_set_email_cart_item_filters", function( $this, $current, $sent_to_admin ) {
    // Do something
        
}, 10, 3 );

woocommerce_gzd_product_export_default_columns Filter

Filter to extend Germanized data added to the WooCommerce product export.

  1. $export_data array Product export data.
add_filter( "woocommerce_gzd_product_export_default_columns", function( $export_data ) {
    // Do something
    return $export_data;    
}, 10, 1 );

woocommerce_gzd_product_export_column_{$column_name} Filter

Filter that allows adjusting product export data for a certain `$column_name`.

  1. $data string Export data.
  2. $product \WC_Product Product object.

woocommerce_gzd_privacy_erase_order_personal_metadata Filter

Filter to adjust personal order data to be anonymized while removing personal data from orders.

  1. $meta_keys array Meta keys to be anonymized.
  2. $order \WC_Order The order object.
add_filter( "woocommerce_gzd_privacy_erase_order_personal_metadata", function( $meta_keys, $order ) {
    // Do something
    return $meta_keys;    
}, 10, 2 );

woocommerce_gzd_privacy_erase_customer_personal_metadata Filter

Filter to adjust personal customer data to be anonymized while removing personal data from customers.

  1. $meta_keys array Meta keys to be anonymized.
  2. $customer \WC_Customer The customer object.
add_filter( "woocommerce_gzd_privacy_erase_customer_personal_metadata", function( $meta_keys, $customer ) {
    // Do something
    return $meta_keys;    
}, 10, 2 );

woocommerce_gzd_privacy_export_order_personal_metadata Filter

Filter to allow exporting personal data added by Germanized to orders.

  1. $meta_keys array Keys as well as titles to be exported.
  2. $order \WC_Order The order object.
add_filter( "woocommerce_gzd_privacy_export_order_personal_metadata", function( $meta_keys, $order ) {
    // Do something
    return $meta_keys;    
}, 10, 2 );

woocommerce_gzd_privacy_export_customer_personal_metadata Filter

Filter to allow exporting personal data added by Germanized to customers.

  1. $meta_keys array Keys as well as titles to be exported.
  2. $customer \WC_Customer The customer object.
add_filter( "woocommerce_gzd_privacy_export_customer_personal_metadata", function( $meta_keys, $customer ) {
    // Do something
    return $meta_keys;    
}, 10, 2 );

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_manufacturer Filter

Filter post types which are capable of storing manufacturers.

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

woocommerce_germanized_taxonomy_args_product_manufacturer Filter

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

  1. $args array Arguments passed to `register_taxonomy`.
add_filter( "woocommerce_germanized_taxonomy_args_product_manufacturer", 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_product_import_formatting_callbacks Filter

Filter that allows adjusting product import formatting callbacks for Germanized product data.

  1. $callbacks array Key => value array containing meta keys and callback functions.
add_filter( "woocommerce_gzd_product_import_formatting_callbacks", function( $callbacks ) {
    // Do something
    return $callbacks;    
}, 10, 1 );