MintPaidProfile — Documentation

Version 1.0.0 · WordPress 6.0+ · PHP 7.4+ · GPL-2.0-or-later

1. Installation

Unzip the package. You get two folders and this documentation:

mintpaid-profile/          the free plugin
mintpaid-profile-pro/      the optional Pro add-on
documentation.html         this file
CHANGELOG.md               what changed in each release
tests/                     the automated test suite
  1. Copy the mintpaid-profile folder into /wp-content/plugins/, or use Plugins → Add New → Upload Plugin and pick the free plugin ZIP.
  2. Activate it on the Plugins screen.
  3. Open MintPaidProfile → Settings and work through the options.
  4. Create a page and drop the shortcodes into it.
Requirements. WordPress 6.0 or newer, PHP 7.4 or newer, MySQL 5.7 / MariaDB 10.3 or newer. The plugin needs the sodium extension for licence verification — it ships with PHP 7.2+ and is enabled by default on every mainstream host.

2. Installing the Pro add-on

The Pro add-on is a separate plugin that requires the free plugin to be active. If the free plugin is missing, the Pro add-on deactivates itself and tells you so.

  1. Install and activate mintpaid-profile first.
  2. Upload mintpaid-profile-pro to /wp-content/plugins/ and activate it.
  3. Go to MintPaidProfile → License.

The 30-day trial

The trial unlocks every Pro feature for 30 days. Its start time is stored in three separate places — an option, a transient and a dedicated table — so deleting and reinstalling the plugin does not reset it. The site owner can start it from the License screen.

3. Licence activation

Licence keys are Ed25519 signatures: payload.signature. They are verified entirely offline against the public key that ships inside the plugin. No request leaves your server to validate a key.

To activate: paste the key into MintPaidProfile → License and save it. The screen shows which features the key covers.

Using a different signing key

If you issued your own keys, define the public key in wp-config.php:

define( 'MINTPAID_LICENSE_PUBLIC_KEY', 'your-base64-public-key' );

A constant always wins over the value stored in the database, and the database value wins over the key embedded in the plugin.

The optional licence-server heartbeat

The Pro add-on can report to a licence server so that a revoked key stops working immediately. This is off by default — nothing is sent anywhere until you turn it on. To point it at your own server, define:

define( 'MINTPAID_PRO_LICENSE_SERVER_URL', 'https://licence.example.com' );

The client follows a documented nine-case contract:

Server answerWhat the client does
200, valid: true, no action requiredNormal operation, any earlier notice is cleared.
200, valid: true, action_requiredShows a warning banner. Features are not disabled.
200, valid: false, heartbeat_staleFirst time: a warning. Second time in a row: read-only.
200, valid: false, status revoked / suspended / deleted / expiredDisables the Pro features and shows the server's message verbatim.
404The key is not known to the server. Reports "no longer recognised" — never a generic licence error.
422The key is forged. Stops immediately, no retry.
5xx or a network failureBacks off, keeps the last known state, disables nothing.

4. Settings

MintPaidProfile → Settings holds everything that is not a screen of its own:

The other screens

ScreenWhat it does
DashboardLicence state, trial state, a short activity summary.
AvatarMaximum upload size, the allowed file types, the crop size and the default avatar.
Email TemplatesThe eight transactional templates, with variables and a WYSIWYG editor.
Custom FieldsCreate and edit the extra fields on a member profile.
Shortcode BuilderEvery shortcode with its arguments and a copy button.
LicenseActivate a licence, start the trial, see the feature list.
Audit LogEvery security-relevant action, filterable, with the IP and the user agent.
System InfoThe environment: PHP, the extensions, the limits and the plugin version.
Social Login ProThe Google, Facebook and X credentials, and the callback URL for each provider.
Membership ProThe Stripe keys, the currency and the plan manager.
Approvals ProThe queue of registrations waiting for approval.
Email Log ProEvery message the plugin sent, with resend.
Form Builder ProThe front-end form builder.

5. Shortcodes

Thirty-eight shortcodes are available. The most used ones:

ShortcodeWhat it renders
[mintpaid-login]The sign-in form.
[mintpaid-registration]The registration form.
[mintpaid-password-reset]The "forgot my password" form.
[mintpaid-edit-profile]The edit-profile form for the signed-in member.
[mintpaid-melange]Login and registration on one form.
[mintpaid-myaccount]The tabbed My Account area.
[mintpaid-profile]The public profile card of one member.
[mintpaid-user-directory]The searchable member directory.
[mintpaid-avatar]The avatar of a member.
[mintpaid-avatar-upload]The avatar upload control.
[mintpaid-cover-image]The cover image of a member.
[mintpaid-cover-upload]The cover image upload control.

The Shortcode Builder screen lists every one of them with its arguments.

6. Custom fields

Add fields under Custom Fields. Fifteen types are available: text, email, tel, textarea, select, checkbox, radio, date, file, URL, number, biographical, website, display name and nickname.

Mark a field public and it appears on the public profile card and in the member directory. Every field is sanitised on save and escaped on output.

7. Email templates

Eight templates ship with the plugin: registration, registration confirmation, login, password reset, password changed, profile updated, account deleted and admin approval. Each one carries the variables the plugin substitutes, and every one can be rewritten in the admin.

8. reCAPTCHA and anti-spam

reCAPTCHA v2 and v3 are configured on the Settings screen and can be enabled per form. Cloudflare Turnstile and Akismet are configured on the same screen. When a provider does not answer, the fail mode decides: deny by default, which is the safe choice — a site owner can flip it to allow while testing on staging.

9. REST API

Five routes under /wp-json/mintpaid/v1/:

POST /register
POST /login
POST /avatar
POST /profile
POST /password/reset

Every route is rate limited, sends the same audit records as the forms and answers with the same validation messages.

10. Pro features

Social login

Register an application with Google, Facebook or X, then paste the credentials into Social Login. The screen shows the exact callback URL to paste into the provider. The buttons appear wherever you place [mintpaid-social-buttons].

Membership

Enter your Stripe keys under Membership, then create the plans. Each plan has a name, a price, a billing period, a WordPress role, a level and a feature list. [mintpaid-plans] renders the plan table.

Two-factor authentication

A member turns it on under Profile → Two-Factor Authentication. The setup key and eight recovery codes are shown once, at that moment — save them. At the next sign-in the login form asks for the six-digit code from the authenticator app, or one of the recovery codes.

Content protection

Restrict a page, a block or a shortcode to the roles and capabilities you choose.

The Dixon profile

A front-end profile page with a cover image, the avatar and the activity tabs.

11. Multisite

Network activation creates the custom tables on every site of the network, and deactivation cleans up on every site. The Pro add-on can push its settings from the main site to the rest of the network.

12. Uninstalling

Nothing is deleted by default. When you delete the plugin, the tables, the options and the transients survive. Uploaded avatar files survive as well. If you want a full purge, turn on Delete all plugin data (and Delete uploaded avatars if you want the files gone too) under Settings → Uninstall before you delete the plugin.

13. Running the tests

The package ships with an automated test suite. It needs nothing but PHP — no WordPress install, no database and no network.

cd tests
php test-heartbeat.php      # the licence heartbeat: 64 assertions
php test-integration.php    # the trial, the forms and the redirect rules: 21 assertions

Both scripts print a summary and exit with a non-zero status when an assertion fails.

14. Troubleshooting

SymptomCause and fix
The Pro features stay lockedOpen License. Either the key is not activated, or the trial has run out, or the licence does not cover that feature. The screen lists the features the key carries.
"The licence key is not valid"The key is malformed, expired, or signed with a different key. If you use your own keys, define MINTPAID_LICENSE_PUBLIC_KEY.
A member cannot sign in after turning on two-factor authenticationUse one of the eight recovery codes shown when the feature was switched on. Each code works once.
The avatar does not changeA caching plugin or a CDN is serving the old file. Purge the cache, and check that the uploads directory is writable.
Nothing appears where a shortcode isOpen Shortcode Builder for the exact name — the names are not guessed, they are listed there.
The registration form is not shownRegistration can be switched off, and administrators can be asked to approve each new member. Both are on the Settings screen.