WordPress plugin exposing ApogeoAPI's geographic data, IP geolocation, and live exchange rates as shortcodes.
Status: 0.1.0 — initial scaffold. Functional with happy-path testing. Not yet submitted to the WordPress.org plugin directory.
packages/wp-apogeo/
├── apogeoapi.php ← main plugin bootstrap
├── readme.txt ← WordPress.org plugin readme format
├── README.md ← this file
└── includes/
├── class-apogeoapi-client.php ← HTTP client wrapper with WP transient caching
├── class-apogeoapi-admin.php ← Settings → ApogeoAPI page
└── class-apogeoapi-shortcodes.php ← 4 shortcodes
| Shortcode | What it does |
|---|---|
[apogeo_country_selector name="country" default="AR"] |
<select> with 250+ countries, flag emoji + name, optional default |
[apogeo_country iso="AR"] |
Inline country fact block (flag, capital, region, currency + live FX rate, population) |
[apogeo_exchange_rate currency="EUR"] |
"1 USD = X EUR" with last-updated timestamp |
[apogeo_visitor_country fallback="your country"] |
Detects visitor country from IP, shows flag + name |
- Symlink or copy
packages/wp-apogeo/to a WP install atwp-content/plugins/wp-apogeo/. - WP admin → Plugins → Activate "ApogeoAPI — Country Selector & Geo Data".
- Settings → ApogeoAPI → paste API key from apogeoapi.com.
- Create a draft page with
[apogeo_country iso="AR"]and preview.
- PHPUnit tests for
ApogeoAPI_Client::get()happy + error paths - WP-CLI command
wp apogeoapi flush-cacheto clear all transients - REST API endpoint so JS components on the front-end can fetch country lists without re-hitting the upstream API on every pageview
- Block editor (Gutenberg) blocks as alternatives to shortcodes
- Optional Cloudflare Workers KV cache for high-traffic sites
- Submission to WordPress.org plugin directory (requires SVN check-in, screenshots, banner image)
- Translation files for ES, FR, DE, PT-BR
- Test locally on a WP 6.5 install with a real ApogeoAPI key.
- Push to a public GitHub repo:
github.com/APOGEOAPI/wp-apogeo. - Submit to WordPress.org plugin directory (review takes 2-4 weeks).
- Once approved, list on alternativeto.net and on the ApogeoAPI website's "Integrations" page.
- Crosspost a "Add live exchange rates to WooCommerce in 2 minutes" tutorial to the WP-focused subreddits and WP Tavern.
MIT