61 lines
3.7 KiB
Markdown
61 lines
3.7 KiB
Markdown
<p align="center"><img src="assets/logo.png" alt="Interweb" width="280"></p>
|
|
|
|
# Interweb Mozambique WordPress domains plugin
|
|
|
|
<!-- badges:start -->
|
|
[](https://git.interweb.co.mz/interweb-mz/wordpress-domains-plugin/releases) [](LICENSE)
|
|
<!-- badges:end -->
|
|
|
|
[Português](README-pt.md)
|
|
|
|
<!-- kb:start -->
|
|
Step-by-step guide in our [Knowledgebase](https://www.meu.interweb.co.mz/knowledgebase/3350?language=english).
|
|
<!-- kb:end -->
|
|
|
|
> API: `https://api.interweb.co.mz`, built in. Create your key in the [API Center](https://www.meu.interweb.co.mz/api-center.php) 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
|
|
1. Download the ZIP of the latest release and upload it in Plugins > Add New > Upload Plugin (or copy the `interweb-mz-domains` folder to `wp-content/plugins/`).
|
|
2. Activate the plugin and open Settings > Interweb Mozambique Domains.
|
|
3. 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 `.po` with `.mo` for `pt_PT`, `pt_BR` and `pt_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 `.po` files, `python3 -I tools/build-mo.py` and `python3 -I tools/i18n-check.py`.
|
|
|
|
## The key
|
|
- Create it in the [API Center](https://www.meu.interweb.co.mz/api-center.php) of Meu Interweb, with `catalog:read` (and `reseller:read` to 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_KEY` in `wp-config.php` instead.
|
|
|
|
## 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.
|