wordpress-domains-plugin/README.md
2026-12-01 15:26:34 +02:00

61 lines
3.6 KiB
Markdown

<p align="center"><img src="assets/logo.png" alt="Interweb" width="280"></p>
# Interweb Angola WordPress domains plugin
<!-- badges:start -->
[![Release](https://git.interweb.ao/interweb-ao/wordpress-domains-plugin/badges/release.svg)](https://git.interweb.ao/interweb-ao/wordpress-domains-plugin/releases) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
<!-- badges:end -->
[Português](README-pt.md)
<!-- kb:start -->
Step-by-step guide in our [Knowledgebase](https://www.meu.interweb.ao/knowledgebase/3350?language=english).
<!-- kb:end -->
> API: `https://api.interweb.ao`, built in. Create your key in the [API Center](https://www.meu.interweb.ao/api-center.php) of Meu Interweb. Documentation: https://docs.interweb.ao
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_ao_domain_finder]`: Domain search: says if each name is free (WHOIS), shows the price and a button to register.
Options: `extensions`, `button`, `placeholder`.
- `[interweb_ao_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-ao-domains` folder to `wp-content/plugins/`).
2. Activate the plugin and open Settings > Interweb Angola 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-ao-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.ao/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_AO_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 Angola Connect plugin: the shortcodes have other names.
- Optional constants in `wp-config.php`: `INTERWEB_AO_DOMAINS_API_KEY`, `INTERWEB_AO_DOMAINS_ENCRYPTION_KEY`.
Requirements: WordPress 6.0 or newer, PHP 7.4 to 8.5, OpenSSL extension.
---
Maintained by RLX Holdings.