Interweb Mozambique plugin for WordPress and WooCommerce: emails through E-mail Center, SMS and email order notifications, signup forms and an AI assistant https://docs.interweb.co.mz
  • PHP 82.1%
  • JavaScript 7.5%
  • Python 7.5%
  • CSS 2.7%
  • Shell 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-28 09:43:44 +02:00
.github Add CI workflow and Dependabot 2026-11-28 09:16:35 +02:00
interweb-mz-connect Initial release (1.0.0) 2026-11-27 22:29:25 +02:00
tools Initial release (1.0.0) 2026-11-27 22:29:25 +02:00
.gitignore Initial release (1.0.0) 2026-11-27 22:29:25 +02:00
CHANGELOG.md Initial release (1.0.0) 2026-11-27 22:29:25 +02:00
LICENSE Initial release (1.0.0) 2026-11-27 22:29:25 +02:00
README.md Add badges and improve description 2026-11-28 09:43:44 +02:00
README.pt.md Add badges and improve description 2026-11-28 09:43:44 +02:00
repo.json Add badges and improve description 2026-11-28 09:43:44 +02:00

Interweb Mozambique WordPress plugin

CI Release License: MIT

Português

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 that uses only our public API, with your account key. The brand (Interweb Mozambique) is chosen in the settings. Works in Portuguese and English.

What it does

  • Site emails: everything sent through wp_mail (WordPress, WooCommerce, forms) goes through E-mail Center. It has a test send and, if the API fails, WordPress sends the email the normal way.
  • Sign-up forms: the [interweb_mz_subscribe] shortcode and the "Sign-up form" block, for E-mail Center and/or SMS contacts, with consent and double confirmation.
  • AI assistant: a floating chat on the site with All in One AI. Requests go through the WordPress server and the key never reaches the browser. Limits per visitor and per day.
  • WooCommerce: SMS and email alerts when an order is received, paid, shipped, completed or cancelled, plus an alert to the site owner. Editable templates in pt and en, and each alert turns on separately.

Shortcodes

Each shortcode also has a block in the editor, with the same options.

  • [interweb_mz_subscribe]: Sign-up form for E-mail Center and/or SMS contacts, with consent and double confirmation. Options: list (default email), groups, sms_groups, title, button, name (default 1).
  • [interweb_mz_domain_search]: Domain search: says if the name is free (WHOIS) and shows the price of each extension. Options: extensions, button, placeholder.
  • [interweb_mz_domain_prices]: Price table of the domain extensions. Options: extensions.
  • [interweb_mz_kb]: Help articles (knowledge base) or announcements, with search and category. Options: type (default articles), category, search, limit (default 5), excerpt (default 1), title.

Install

  1. Copy the interweb-mz-connect folder to wp-content/plugins/ (or build a zip with tools/build-zip.sh and upload it in Plugins > Add New).
  2. Activate the plugin and open Settings > Interweb Mozambique Connect.
  3. Choose the brand, paste the API key and click "Test the connection".

Languages

  • The code is in English. Translations are standard gettext files in interweb-mz-connect/languages: interweb-mz-connect.pot (all texts), interweb-mz-connect-pt_PT.po and copies for pt_BR and pt_AO, each with its compiled .mo.
  • The "Language" setting decides: "Same as WordPress" follows the WordPress language (any pt_* language without its own file uses pt_PT); "Português" or "English" fixes the plugin language whatever the WordPress language. Messages to customers (order alerts, confirmations) go in each customer's language.
  • A .mo in wp-content/languages/plugins/ wins over the plugin's own files, as usual in WordPress.
  • After changing texts: python3 -I tools/i18n-check.py --pot (rewrites the .pot), translate in the .po files, python3 -I tools/build-mo.py (compiles the .mo, Python standard library only) and python3 -I tools/i18n-check.py (missing texts, dashes, forbidden words, out of date .pot or .mo).

The key

  • Create it in the API Center of Meu Interweb. Use a sandbox_ key to try things out: everything is simulated and nothing is spent.
  • It is stored encrypted (AES-256-GCM, with the WordPress security keys) and never shown again. You can define INTERWEB_MZ_CONNECT_API_KEY in wp-config.php instead.
  • Permissions: email_center:read and email_center:write (emails and forms), sms:read and sms:write (SMS), ai:write (assistant).

Good to know

  • The API adds contacts straight away, without double confirmation. So the plugin does the confirmation: the sign-up waits in a table of the site until the person opens the email link (or types the SMS code, when only a phone was given). Only then does it go to the API. The proof of consent (date, IP and accepted text) stays in that table. Unconfirmed sign-ups are deleted after 7 days.
  • The email sender must be at a domain verified in E-mail Center. By default the plugin always uses that address and puts the original sender in Reply-To.
  • WooCommerce keeps sending its own emails. Turn on only the alerts you want on top of them.
  • The "Shipped" order status comes from the plugin. If you use another shipping plugin, turn it off in the settings.
  • Optional constants in wp-config.php: INTERWEB_MZ_CONNECT_API_KEY, INTERWEB_MZ_CONNECT_ENCRYPTION_KEY, INTERWEB_MZ_CONNECT_KEEP_SIGNUPS (keep the sign-ups table when the plugin is deleted).

Requirements: WordPress 6.0 or newer, PHP 7.4 to 8.5, OpenSSL extension. WooCommerce 7.0 or newer for order alerts.


Maintained by RLX Holdings.