DHL Shipping Germany for WooCommerce 4.1.2 has 3 actions and 24 filters, read directly from its source code on Nov 18, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when DHL Shipping Germany for WooCommerce fires an action
add_action( 'pr_shipping_dhl_label_created', function( $order_id ) {
// Your code runs here.
}, 10, 1 );
// Change a value DHL Shipping Germany for WooCommerce is about to use
add_filter( 'pr_dhl_paket_recipient_services_available', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Filters whether the recipient services are shown and sent to DHL. */ apply_filters( 'pr_dhl_paket_recipient_services_available', self::RECIPIENT_SERVICES_AVAILABLE ); -
/** * Filters the countries where Paperless Customs is available. */ apply_filters( 'pr_dhl_paperless_supported_countries', array( 'CH' ) ); -
/** * Filters the seconds to wait before retrying a rate-limited Paperless Customs * upload. */ apply_filters( 'pr_dhl_paperless_upload_backoff_seconds', 2 ); -
/** * Filters how many Paperless Customs invoice uploads run at the same time in a * bulk run. */ apply_filters( 'pr_dhl_paperless_upload_concurrency', 10 ); -
/** * Filters the maximum number of Paperless Customs upload attempts. */ apply_filters( 'pr_dhl_paperless_upload_max_attempts', 2 ); -
/** * Filters the longest Retry-After (seconds) that is honored; a longer one * skips the retry. */ apply_filters( 'pr_dhl_paperless_upload_retry_after_cap', 10 ); -
/** * Maximum number of shipments sent to the DHL Parcel DE order endpoint per * request. Keep this at or below DHL's documented per-request cap. */ apply_filters( 'pr_shipping_dhl_paket_label_batch_size', 30 ); -
/** * This filter is documented in * woocommerce/includes/abstracts/abstract-wc-order.php */ apply_filters( 'woocommerce_order_is_vat_exempt', 'yes' === $order->get_meta( 'is_vat_exempt' ), $order ); -
/** * This filter is documented in woocommerce/includes/class-wc-tax.php */ apply_filters( 'woocommerce_shipping_tax_class', $tax_class, $cart, $customer, $location ); -
apply_filters( 'pr_shipping_dhl_label_args', $args, $order_id ); -
apply_filters( 'pr_shipping_dhl_paket_label_ref_no_prefix', 'order_' ); -
do_action( 'pr_shipping_dhl_label_created', $order_id ); -
apply_filters( 'pr_shipping_dhl_order_weight', $total_weight, $order_id ); -
apply_filters( 'pr_shipping_dhl_paket_label_shipment_export_type', 'COMMERCIAL_GOODS' ); -
apply_filters( 'pr_shipping_dhl_paket_label_shipment_profile', 'STANDARD_GRUPPENPROFIL' ); -
apply_filters( 'pr_shipping_dhl_paket_products_domestic', $dhl_prod_dom ); -
apply_filters( 'pr_shipping_dhl_paket_products_international', $dhl_prod_int ); -
do_action( 'pr_delete_dhl_label_tracking', $order_id ); -
apply_filters( 'pr_dhl_eu_exception', $is_eu_exception, $shipping_address, $this->eu_exceptions ); -
apply_filters( 'pr_dhl_is_crossborder_shipment', (bool) $is_crossborder, $shipping_address['country'] ); -
apply_filters( 'pr_dhl_is_domestic_shipment', (bool) $is_domestic, $country_receiver ); -
do_action( 'pr_save_dhl_label_tracking', $order_id, $tracking_details ); -
apply_filters( 'pr_shipping_dhl_base_country', $country_code['country'] ); -
apply_filters( 'pr_shipping_dhl_base_postcode', WC()->countries->get_base_postcode() ); -
apply_filters( 'pr_shipping_dhl_currency_symbol', get_woocommerce_currency_symbol() ); -
apply_filters( 'pr_shipping_dhl_email_notification_position', 'woocommerce_review_order_before_submit' ); -
apply_filters( 'pr_shipping_dhl_paket_pickup_args', $args, $order_ids );
Generated from DHL Shipping Germany for WooCommerce's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: