3.5 KiB
3.5 KiB

Interweb Mozambique WordPress domains plugin
API:
https://api.interweb.co.mz, built in. Create your key in the API Center of Meu Interweb. Documentation: https://docs.interweb.co.mz
WordPress plugin for domain search. It uses only our public API, with your account key. Works in Portuguese and English.
What it does
- Domain search for any page, as a block or shortcode. It says if each name is free (WHOIS), shows the price per year and the renewal, and suggests similar free names.
- "See WHOIS" for names already taken: registration and expiry dates, status and nameservers.
- Register button: to the brand site, to your own address (with
{domain}), or to the WooCommerce cart when the Reseller for WooCommerce plugin of the same brand is active. - Prices: public prices, or with a Reseller Program key your price plus the margin you choose, rounded if you want. Always 2 decimal places.
- Price list of the extensions you choose (block or shortcode).
- Limit of searches per visitor, so robots do not eat your API limits.
Shortcodes
Each shortcode also has a block in the editor, with the same options.
[interweb_mz_domain_finder]: Domain search: says if each name is free (WHOIS), shows the price and a button to register. Options:extensions,button,placeholder.[interweb_mz_tld_prices]: Price list of the domain extensions you choose. Options:extensions.
Install
- Download the ZIP of the latest release and upload it in Plugins > Add New > Upload Plugin (or copy the
interweb-mz-domainsfolder towp-content/plugins/). - Activate the plugin and open Settings > Interweb Mozambique Domains.
- Paste the API key and save. The key is checked with the API right away.
Languages
- The code is in English. Translations are gettext files in
interweb-mz-domains/languages(.pot, and.powith.moforpt_PT,pt_BRandpt_AO). - "Same as WordPress" follows the WordPress language; "Português" or "English" fixes the plugin language.
- After changing texts:
python3 -I tools/i18n-check.py --pot, translate in the.pofiles,python3 -I tools/build-mo.pyandpython3 -I tools/i18n-check.py.
The key
- Create it in the API Center of Meu Interweb, with
catalog:read(andreseller:readto see your Agency). - When you save it, the plugin asks the API about it: a wrong, revoked or expired key is not saved, and missing permissions or a Sandbox key are said right away.
- It is stored encrypted (AES-256-GCM, with the WordPress security keys) and never shown again. You can define
INTERWEB_MZ_DOMAINS_API_KEYinwp-config.phpinstead.
Good to know
- The visitor asks your WordPress, and WordPress asks the API with the key: the key never reaches the browser.
- Results are kept for 10 minutes and extension prices for 6 hours.
- It can run next to the Interweb Mozambique Connect plugin: the shortcodes have other names.
- Optional constants in
wp-config.php:INTERWEB_MZ_DOMAINS_API_KEY,INTERWEB_MZ_DOMAINS_ENCRYPTION_KEY.
Requirements: WordPress 6.0 or newer, PHP 7.4 to 8.5, OpenSSL extension.
Maintained by RLX Holdings.