| 开发者 | morshed06 |
|---|---|
| 更新时间 | 2026年11月18日 13:23 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[daklo_tracking] - one box. The carrier is detected from the number.[daklo_tracking carrier="select"] - the visitor picks the carrier.[daklo_tracking carrier="dhl"] - one carrier only. Use dhl, ups, fedex, ship24 or teg.[daklo_load_tracking] - the TEG Load ID form (same as carrier="teg").title, intro, button, placeholder, heading, help_title, format_title, format_text and help="no".
daklo-courier-tracking folder to /wp-content/plugins/, or install the zip from Plugins > Add New > Upload Plugin.Open the Trackings tab and click "Add New Tracking", pick the next courier and repeat the steps. Each courier keeps its own settings.
The plugin looks at the format of the number (UPS starts with 1Z, FedEx has 12, 15, 20 or 22 digits, DHL has 10 digits, a TEG Load ID has 5 to 9 digits). It tries the matching connected carrier first. If that carrier does not know the number, or no carrier matches, Ship24 is tried when it is connected. At most two carriers are asked for one lookup.
Parcels can take some hours to appear after the label is made. Try again later. With Ship24, a new number is registered on the first lookup and may show no events yet.
Use "Cache parcel results" and "Daily limit per carrier" on the Limits tab of Daklo Tracking (left menu). They are saved separately for each courier. The same number is then not sent again for a few minutes, and your site stops calling a carrier after the daily limit.
Add this line to wp-config.php so the rate limit uses the real visitor IP: define( 'DAKLO_TRUST_PROXY_HEADERS', true );
Yes. Add define( 'DAKLO_LOCK_WARNING', true ); to wp-config.php. The Plugins screen then asks for confirmation before deactivate or delete.
Extend the DAKLO_Provider class (see includes/providers/class-daklo-provider-dhl.php) and add it with the daklo_providers filter:
add_filter( 'daklo_providers', function ( $providers ) { $providers[] = new My_Carrier_Provider(); return $providers; } );
The carrier then gets its own settings card and works in the shortcodes. If you do not want to write code, connect Ship24: one key tracks 1,500+ carriers (Royal Mail, DPD, Evri, USPS and more).
By default it sits just below Comments. To move it, add this to your theme's functions.php or a code snippet plugin (58 puts it just above Appearance):
add_filter( 'daklo_menu_position', function () { return 58; } );
daklo_providers, daklo_api_base_url, daklo_show_full_address, daklo_rate_limit_requests, daklo_rate_limit_window, daklo_rate_limit_failures, daklo_rate_limit_failure_window, daklo_client_ip, daklo_allowed_origin_hosts and daklo_menu_position.
[daklo_tracking], [daklo_tracking carrier="select"], [daklo_tracking carrier="dhl"] and [daklo_load_tracking].