Torrestir Tracking
A simple Torrestir tracking information parser
by Naked Cat Plugins (by Webdados) · github.com/webdados/torrestir-tracking
★ 0stars
0forks
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/webdados/torrestir-tracking/releases/download/1.0/torrestir-tracking.zipFrom the readme
Torrestir Tracking
Description
A micro-plugin for tracking shipments via the Torrestir carrier. It fetches the tracking page for a given tracking ID, parses the HTML response to extract the latest event, and caches the result using WordPress transients for efficient repeated lookups.
Installation
1. Upload the torrestir-tracking folder to the /wp-content/plugins/ directory.
2. Activate the plugin through the Plugins menu in WordPress.
Updates are delivered automatically from GitHub Releases using the bundled Plugin Update Checker library.
Usage
Call ttgetlastevent( $trackingid ) from within the NakedCatPlugins\TorrestirTracking namespace (or use the fully-qualified name) with a valid Torrestir tracking ID. The function returns an associative array of event fields on success, or a WPError on failure.
Functions
All functions live in the NakedCatPlugins\TorrestirTracking namespace.
| Function | Description |
|---|---|
| ttgetlastevent( $trackingid ) | Fetches and returns the last tracking event for the given ID. Results are cached via WordPress transients: 1 hour for in-transit shipments, 1 week for delivered shipments (Description = "Delivered" or "Entregue"). Returns array
Read the full README on GitHub →
Releases
| Tag | Published | Asset | Downloads |
|---|---|---|---|
| 1.0 | Mar 25, 2026 | torrestir-tracking.zip | 0 |