woocommerce_gzd_deutsche_post_label_api_customs_transmit_communication_data Filter
$param_1string$param_2string
add_filter( "woocommerce_gzd_deutsche_post_label_api_customs_transmit_communication_data", function( $param_1, $param_2 ) {
// Do something
return $param_1;
}, 10, 2 );
woocommerce_gzd_deutsche_post_label_api_pdf_accept_header Filter
$paramstring
add_filter( "woocommerce_gzd_deutsche_post_label_api_pdf_accept_header", function( $param ) {
// Do something
return $param;
}, 10, 1 );
woocommerce_gzd_dhl_loaded Action
add_action( "woocommerce_gzd_dhl_loaded", function( ) {
// Do something
}, 10 );
woocommerce_gzd_dhl_preferred_service_fields Action
add_action( "woocommerce_gzd_dhl_preferred_service_fields", function( ) {
// Do something
}, 10 );
woocommerce_gzd_dhl_checkout_parcel_services_data Filter
$paramstring
add_filter( "woocommerce_gzd_dhl_checkout_parcel_services_data", function( $param ) {
// Do something
return $param;
}, 10, 1 );
woocommerce_gzd_dhl_checkout_get_current_payment_method Filter
$paramstring
add_filter( "woocommerce_gzd_dhl_checkout_get_current_payment_method", function( $param ) {
// Do something
return $param;
}, 10, 1 );
woocommerce_gzd_dhl_order_supports_email_notification Filter
Filter to adjust whether customer data (email address) should be handed over to DHL to provide with services such as email notification or parcel outlet routing. By default this may only work if the customer has opted-in via checkbox during checkout.
$has_email_notificationbool Whether the order supports email notification (handing over customer data to DHL).$order\Vendidero\Germanized\DHL\Order The order instance.
add_filter( "woocommerce_gzd_dhl_order_supports_email_notification", function( $has_email_notification, $order ) {
// Do something
return $has_email_notification;
}, 10, 2 );
woocommerce_gzd_dhl_order_needs_age_verificaton Filter
Filter to decide whether a DHL order needs age verification or not.
$needs_verificationbool Whether the order needs age verification or not.$order\Vendidero\Germanized\DHL\Order The order instance.
add_filter( "woocommerce_gzd_dhl_order_needs_age_verificaton", function( $needs_verification, $order ) {
// Do something
return $needs_verification;
}, 10, 2 );
woocommerce_gzd_dhl_order_has_cod_payment Filter
Filter to decide whether a DHL order has cash on delivery payment enabled.
$resultbool Whether the order has COD payment or not.$order\Vendidero\Germanized\DHL\Order The order instance.
add_filter( "woocommerce_gzd_dhl_order_has_cod_payment", function( $result, $order ) {
// Do something
return $result;
}, 10, 2 );
woocommerce_gzd_dhl_label_query_args Filter
Filter to adjust query paramaters for a DHL label query.
$query_varsarray The query arguments.
add_filter( "woocommerce_gzd_dhl_label_query_args", function( $query_vars ) {
// Do something
return $query_vars;
}, 10, 1 );
woocommerce_gzd_dhl_label_query Filter
Filter to adjust query result data for a DHL label query.
$results\Vendidero\Germanized\DHL\Label\Label[] The results.$argsarray The query arguments.
add_filter( "woocommerce_gzd_dhl_label_query", function( $results, $args ) {
// Do something
return $results;
}, 10, 2 );
woocommerce_gzd_dhl_label_search_columns Filter
Filters the columns to search in a DHL LabelQuery search. The default columns depend on the search term, and include ‚label_id‘, ‚label_shipment_id‘, ‚label_path‘ and ‚label_number‘.
$search_columnsstring[] Array of column names to be searched.$searchstring Text being searched.$this\Vendidero\Germanized\DHL\Legacy\LegacyLabelQuery The current LabelQuery instance.
add_filter( "woocommerce_gzd_dhl_label_search_columns", function( $search_columns, $search, $this ) {
// Do something
return $search_columns;
}, 10, 3 );
woocommerce_gzd_dhl_{$hook_postfix}label_created Action
Action fires when a new DHL label has been created. The dynamic portion of this hook, `$hook_postfix` refers to the label type e.g. return in case it is not a simple label.
$label_idint The label id.$label\Vendidero\Germanized\DHL\Legacy\DataStores\Label The label instance.
woocommerce_gzd_dhl_{$hook_postfix}label_updated Action
Action fires after a DHL label has been updated in the DB. The dynamic portion of this hook, `$hook_postfix` refers to the label type e.g. return in case it is not a simple label.
$label_idint The label id.$label\Vendidero\Germanized\DHL\Legacy\DataStores\Label The label instance.$changed_propsarray Properties that have been changed.
woocommerce_gzd_dhl_{$hook_postfix}label_deleted Action
Action fires after a DHL label has been deleted from DB. The dynamic portion of this hook, `$hook_postfix` refers to the label type e.g. return in case it is not a simple label.
$label_idint The label id.$label\Vendidero\Germanized\DHL\Legacy\Label The label object.
woocommerce_gzd_dhl_{$hook_postfix}label_loaded Action
Action fires after reading a DHL label from DB. The dynamic portion of this hook, `$hook_postfix` refers to the label type e.g. return in case it is not a simple label.
$label\Vendidero\Germanized\DHL\Legacy\Label The label object.
woocommerce_gzd_dhl_label_object_updated_props Action
Action fires after DHL label meta properties have been updated.
$label\Vendidero\Germanized\DHL\Legacy\Label The label object.$updated_propsarray The updated properties.
add_action( "woocommerce_gzd_dhl_label_object_updated_props", function( $label, $updated_props ) {
// Do something
}, 10, 2 );
woocommerce_gzd_dhl_label_data_store_get_labels_query Filter
Filter to adjust the DHL label query args after parsing them.
$wp_query_argsarray Parsed query arguments.$query_varsarray Original query arguments.$data_store\Vendidero\Germanized\DHL\Legacy\DataStores\Label The label data store.
add_filter( "woocommerce_gzd_dhl_label_data_store_get_labels_query", function( $wp_query_args, $query_vars, $data_store ) {
// Do something
return $wp_query_args;
}, 10, 3 );
woocommerce_gzd_dhl_parcel_locator_countries Filter
Filter to enable DHL parcel shop delivery for certain countries.
$country_codesarray Array of country codes which support DHL parcel shop delivery.
add_filter( "woocommerce_gzd_dhl_parcel_locator_countries", function( $country_codes ) {
// Do something
return $country_codes;
}, 10, 1 );
woocommerce_gzd_dhl_parcel_locator_excluded_gateways Filter
Filter to disable DHL parcel shop delivery for certain gateways.
$gatewaysarray Array of gateway IDs to exclude.
add_filter( "woocommerce_gzd_dhl_parcel_locator_excluded_gateways", function( $gateways ) {
// Do something
return $gateways;
}, 10, 1 );
woocommerce_gzd_dhl_order_postnumber Filter
Filter to adjust the DHL postnumber for a certain order.
$post_numberstring The post number.$order\WC_Order The order object.
add_filter( "woocommerce_gzd_dhl_order_postnumber", function( $post_number, $order ) {
// Do something
return $post_number;
}, 10, 2 );
woocommerce_gzd_dhl_user_postnumber Filter
Filter to adjust the DHL postnumber for a certain user.
$post_numberstring The post number.$user\WP_User The user object.
add_filter( "woocommerce_gzd_dhl_user_postnumber", function( $post_number, $user ) {
// Do something
return $post_number;
}, 10, 2 );
woocommerce_gzd_dhl_provider_supports_pickup_location Filter
$param_1string$param_2string$param_3string
add_filter( "woocommerce_gzd_dhl_provider_supports_pickup_location", function( $param_1, $param_2, $param_3 ) {
// Do something
return $param_1;
}, 10, 3 );
woocommerce_gzd_dhl_shipment_needs_label Filter
Filter to determine whether a shipment needs a DHL label or not.
$needs_labelbool Whether the shipment needs a DHL label or not.$shipment\Vendidero\Germanized\Shipments\Shipment The shipment object.
add_filter( "woocommerce_gzd_dhl_shipment_needs_label", function( $needs_label, $shipment ) {
// Do something
return $needs_label;
}, 10, 2 );
woocommerce_gzd_dhl_after_create_label Action
Action fires after creating a DHL label. The dynamic portion of this hook, `$hook_prefix` refers to the label type e.g. return. Example hook name: woocommerce_gzd_dhl_after_create_return_label
$label\Vendidero\Germanized\DHL\Label\Label The label object.
add_action( "woocommerce_gzd_dhl_after_create_label", function( $label ) {
// Do something
}, 10, 1 );
woocommerce_gzd_dhl_customs_item_description Filter
Apply legacy filters
$param_1string$param_2string$param_3string$param_4string
add_filter( "woocommerce_gzd_dhl_customs_item_description", function( $param_1, $param_2, $param_3, $param_4 ) {
// Do something
return $param_1;
}, 10, 4 );
woocommerce_gzd_dhl_customs_item_category Filter
$param_1string$param_2string$param_3string$param_4string
add_filter( "woocommerce_gzd_dhl_customs_item_category", function( $param_1, $param_2, $param_3, $param_4 ) {
// Do something
return $param_1;
}, 10, 4 );
woocommerce_gzd_dhl_customs_item Filter
$param_1string$param_2string$param_3string$param_4string
add_filter( "woocommerce_gzd_dhl_customs_item", function( $param_1, $param_2, $param_3, $param_4 ) {
// Do something
return $param_1;
}, 10, 4 );
woocommerce_gzd_dhl_customs_data Filter
$param_1string$param_2string$param_3string
add_filter( "woocommerce_gzd_dhl_customs_data", function( $param_1, $param_2, $param_3 ) {
// Do something
return $param_1;
}, 10, 3 );
woocommerce_gzd_dhl_label_payment_ref_placeholder Filter
$paramarray
add_filter( "woocommerce_gzd_dhl_label_payment_ref_placeholder", function( $param ) {
// Do something
return $param;
}, 10, 1 );
woocommerce_gzd_dhl_label_customer_reference Filter
Filter to adjust the customer reference field placed on the DHL label. Maximum characeter length: 35.
$textstring The customer reference text.$label\Vendidero\Germanized\DHL\Label\Label The label instance.$shipment\Vendidero\Germanized\Shipments\SimpleShipment The shipment instance.
add_filter( "woocommerce_gzd_dhl_label_customer_reference", function( $text, $label, $shipment ) {
// Do something
return $text;
}, 10, 3 );
woocommerce_gzd_dhl_label_endorsement_type Filter
$param_1string$param_2string$param_3string
add_filter( "woocommerce_gzd_dhl_label_endorsement_type", function( $param_1, $param_2, $param_3 ) {
// Do something
return $param_1;
}, 10, 3 );
woocommerce_gzd_dhl_return_label_customer_reference Filter
Filter to adjust the customer reference field placed on the DHL return label. Maximum characeter length: 30.
$textstring The customer reference text.$label\Vendidero\Germanized\DHL\Label\Label The label instance.$shipment\Vendidero\Germanized\Shipments\ReturnShipment The shipment instance.
add_filter( "woocommerce_gzd_dhl_return_label_customer_reference", function( $text, $label, $shipment ) {
// Do something
return $text;
}, 10, 3 );
woocommerce_gzd_dhl_inlay_return_label_reference Filter
Filter to adjust the inlay return reference field placed on the DHL label. Maximum characeter length: 35.
$textstring The customer reference text.$label\Vendidero\Germanized\DHL\Label\Label The label instance.$shipment\Vendidero\Germanized\Shipments\SimpleShipment The shipment instance.
add_filter( "woocommerce_gzd_dhl_inlay_return_label_reference", function( $text, $label, $shipment ) {
// Do something
return $text;
}, 10, 3 );
woocommerce_gzd_dhl_parcel_outlet_routing_email_address Filter
$param_1string$param_2string
add_filter( "woocommerce_gzd_dhl_parcel_outlet_routing_email_address", function( $param_1, $param_2 ) {
// Do something
return $param_1;
}, 10, 2 );
woocommerce_gzd_dhl_label_shipment_street_number_placeholder Filter
This filter is documented in includes/wc-gzd-dhl-core-functions.php
$paramstring
add_filter( "woocommerce_gzd_dhl_label_shipment_street_number_placeholder", function( $param ) {
// Do something
return $param;
}, 10, 1 );
woocommerce_gzd_dhl_label_custom_format Filter
This filter allows adjusting the default label format (GUI) to a custom format e.g. 910-300-700. The following formats are available:
- A4
- 910-300-700
- 910-300-700-oZ
- 910-300-600
- 910-300-610
- 910-300-710
- 100x70mm (Warenpost only)
$formatstring The label format.$label\Vendidero\Germanized\DHL\Label\DHL The label instance.$typestring The type e.g. inlay_return.
add_filter( "woocommerce_gzd_dhl_label_custom_format", function( $format, $label, $type ) {
// Do something
return $format;
}, 10, 3 );