This manual describes the plugin screen by screen, from the first start to the hooks for developers. Red boxes flag what surprises or what has consequences; grey boxes explain why something works the way it does.
Version 1.0.0.
1. Who this plugin is for
One registration in three is made with a mistyped, disposable or invented address. The
account exists, but it will never receive anything: no password reset, no invoice, no
answer to a question. You only find out on the day you need to reach that person.
Marly’s Confirm closes that door. At registration the account is marked
pending; an email goes out at once with a confirmation button. Until the link has
been clicked, login is refused. The visitor, for their part, has one click to make.
What it does not do
It does not check whether an address exists at the mail provider: it checks
that someone reads it, which is the only proof that counts. Nor does it
block disposable addresses — a service that reads its messages will pass the
confirmation.
It never touches accounts that already existed. An account that was never
marked is not “pending”: on the day you activate the plugin, nobody loses access.
2. First steps
Installing
Plugins → Add New → Upload Plugin, choose the ZIP file you received, then activate. A
screen appears under Settings → Email confirmation.
The two editions are not installed together: the professional edition
contains everything the free one does. Deactivate one before installing the other.
Entering the licence Pro
On the same screen, at the bottom: paste the key you received by email — it looks like
MLP-XXXX-XXXX-XXXX-XXXX — and click Activate.
Every key in the Marly’s range looks alike, and the email does not
always say which product yours belongs to. If activation is refused, read the message: it
names the product the key really belongs to.
If the licence server does not answer, nothing stops: the last known state holds for
another forty-eight hours. And if the licence expires, the plugin falls back on the free
features — it breaks nothing and loses no setting.
The three minutes that follow
- Check the logo picked up from your site, shown in the settings.
- Choose your button colour.
- Save, then send yourself the test email from the bottom of the
page.
The test email goes out with the saved settings: save
first, send afterwards. The link it contains is an example, it confirms nothing.
3. What the new member goes through
The whole path, from the form to the active account:
- They register. The account is created, then marked pending.
- The confirmation email goes out immediately.
- They click the button. A page tells them the account is now active.
- They receive a welcome email, if you ask for one.
- They sign in.
If they try to sign in first
The login screen refuses, and says why — with a Resend the confirmation
email link right below. That link leads to a screen where they enter their
address; a new email goes out, with a fresh link.
If the link has expired or has already been used
They land on a page that says so plainly and that carries, on the same page, a field to
ask for another one. No dead end: wherever they go wrong, there is always a button to move
on.
The answer is deliberately the same whether the address
exists or not: “if a pending account exists for this address, an email has just gone out”.
Otherwise this form would become a handy way of finding out who is registered with you.
Does WordPress also send its own email?
No — it is held back until the address is confirmed: two contradictory messages, one
announcing a ready account and the other asking for confirmation, would arrive in the same
minute.
4. The confirmation email
It is built with HTML tables and styles written on every tag. That is not fussiness:
Outlook renders email with the Word engine, which knows neither grids nor flexboxes. What
is written this way displays correctly everywhere.
What it contains
- your logo at the top;
- a short heading and one sentence saying what is expected;
- the confirmation button, in your colour;
- the link written out in full, right underneath;
- how long it is valid, and a discreet footer.
The plain link is not a detail: one corporate mailbox in ten strips
buttons, and some readers show the text without the links. Without that line, those people
are stuck with no way out at all.
The footer
It explains why the message was received and what happens if nothing was asked for:
without confirmation, the account will never be activated. No vendor branding
appears: your customers see only your site.
The three templates Pro
| Template | What it gives | When to choose it |
|---|---|---|
| Card | A white card centred on a light background, logo on top. |
The default choice, safe everywhere. |
| Banner | Full-width header in your colour, wide button. |
A brand with a light or single-colour logo. |
| Letter | Plain, left-aligned, no coloured background. |
This is the one that gets through corporate mail filters best. |
Replacing it with your own
Copy the template file into your theme, under
marlys-confirm/email/confirm-default.php: it will be used instead of the
plugin’s own, and will survive updates.
5. The logo, the colour and the wording
The logo picks itself up
With no setting at all, the plugin takes your theme’s logo (Customise →
Site Identity). If there is none, it takes the site icon. If you have
neither, the site name is written out in full — never a hole in the header.
Why the care: a confirmation email that does not look like the site it came
from looks like phishing. It is opened less often, reported more often, and ends up
dragging your whole domain into the spam folder.
To use a different one — a horizontal version, or a logo that reads better on a light
background — paste its address into the Logo field, or pick it from the
media library. The preview under the field shows what will really be sent.
The colour
A single colour dresses the button and the links. Take your site’s own: the email must
be recognised in half a second.
Your own wording Pro
Subject, opening sentence, button text and footer are each replaced by yours. Leave a
field empty to keep the original text — which has the advantage of being translated into
nine languages.
Text you write yourself is not translated: it goes out as it stands to
all your members, whatever language they read.
The sender
Leave it empty to keep the site’s own. If you fill it in, use an address on your
own domain: an address at @gmail.com sent from your server is rejected
by most mail providers, and the send “succeeds” without anything arriving.
6. Blocking or soft mode
Two ways of handling an unconfirmed account.
| Blocking | Soft mode Pro | |
|---|---|---|
| Login | refused | allowed |
| What the person sees | a message at login, with the resend link | a reminder banner once signed in |
| Suited to | shops, members-only areas, anything that commits | content sites, communities, wherever a closed door drives people away |
In soft mode it is up to you to decide what stays closed — commenting, publishing,
ordering — by asking the plugin from your theme (see the developer section). The banner
shows itself, and its wording can be replaced by yours.
An account able to administer the site is never
blocked, even unconfirmed. If your site’s email breaks down, you must still be able to
reach the dashboard to switch the plugin off. That is deliberate.
7. The link: lifetime, single use, resending
How it is built
At every send, a token of twenty-four random bytes is produced. The link carries it; the
database keeps only a fingerprint of it, computed with a secret of your
own site.
The consequence: nobody can confirm an account from a copy of your database
— the fingerprint cannot be turned back into a link. And since the secret belongs to each
site, a link made elsewhere is worthless on yours.
Lifetime
24 hours in the free edition, not changeable. Adjustable from 1 hour to
30 days with the professional edition.
Single use
Once clicked, the link is burnt: replaying it shows “this address is already confirmed”.
A resend also cancels the previous link — there are never two live links
for the same account.
The delay between two sends
Two minutes by default, adjustable from 30 seconds to an hour. It stops a resend form
from being used to flood someone’s mailbox. A request made too early gets the same
reassuring answer as the others, but no email goes out.
8. Following up and rescuing accounts
Under Users, an Email address column shows where each
account stands:
- ✓ confirmed, with the date;
- ⏳ pending, and where applicable “link expired”;
- — for accounts older than the installation, which the plugin does not
govern.
A drop-down at the top of the list filters on Pending or
Confirmed.
The two actions under each row
- Resend the confirmation — a fresh link goes out at once, without
waiting for the delay. - Confirm on their behalf — for the person who telephones you because
nothing arrives. The account becomes confirmed, with no email.
“Confirm on their behalf” bypasses exactly what the plugin checks. Use
it only when you are certain, by some other means, that the address is good.
An account you create yourself from the dashboard
It is confirmed straight away: you are the one registering that person, and asking them
to validate their address would leave them outside for no reason.
9. WooCommerce and the other forms
Pro The core listens to WordPress account creation, which
almost every plugin triggers. The professional edition adds what the core cannot do on its
own.
WooCommerce
Accounts created at registration and at checkout are
covered. After registration the customer is sent to their account with a message telling
them to open their mailbox.
WooCommerce signs the new customer in immediately. In blocking mode
the plugin therefore closes that session again — except during checkout.
Cutting the session in the middle of a payment would lose the basket and the order: in that
case confirmation happens afterwards, by email.
Third-party forms
Contact Form 7, Gravity Forms, WPForms, Ultimate Member and the others create their
accounts the normal WordPress way: the confirmation therefore goes out on its own. What the
option adds is closing the session these plugins often open right after
registration — without which the account would be open before it is confirmed.
The settings screen shows what it has recognised on your site.
10. Reminders and cleanup
The reminder Pro
A reminder goes out to accounts still pending after the delay you set — 24 hours by
default. One reminder per account, never two: the link it carries is fresh
and starts again for the full lifetime.
At most fifty accounts are handled per pass. On a site with thousands of
members, a task that sends everything at once gets cut off halfway by the host, and nobody
knows where it had got to.
The cleanup Pro
Accounts never confirmed can be deleted after a number of days you choose. This
is off by default, and it always spares:
- any account that can publish or administer;
- any account that has written something — a post, a comment;
- any account that has placed an order, even an abandoned one.
Deleting an account cannot be undone. Start by looking at how many
accounts are concerned, in the figures at the top of the screen, before you switch anything
on.
Both features run in the same daily task. If your site gets few visits, WordPress may
start it late: that is normal, it catches up.
11. Statistics and export
Pro Four figures at the top of the settings screen:
- the number of confirmed addresses;
- the number of pending accounts;
- the confirmation rate;
- the average time between the send and the click.
The average time leaves out gaps of more than thirty days: an account
confirmed by hand months later would skew the average without teaching anything. A rate
under 60 % almost always signals a delivery problem, not a wording one — see the
section on emails that do not arrive.
The export
The Export statuses (CSV) button produces a file you can open in Excel
or LibreOffice: username, display name, address, registration date, status, confirmation
date, number of emails sent and where the registration came from.
The file is separated by semicolons and starts with an encoding mark — without it, Excel
gets the accents wrong.
Multisite Pro
A single licence covers the network. Each site keeps its own settings and its own
emails; a network screen shows, site by site, how many addresses are confirmed and how many
are pending.
12. Languages
The plugin ships in nine languages: French, Dutch, English, German,
Spanish, Italian, Polish, Portuguese of Portugal and Portuguese of Brazil. Both the settings
screens and the emails follow the language of the site.
Nothing to install: the catalogues are inside the plugin.
On a multilingual site the email goes out in the language of the site at the
moment of registration. To force another language — the visitor’s own, for instance — a
filter is provided, see the next section.
The wording you write yourself in the settings is not translated: it
goes out as it stands to everyone. If your members speak several languages, you are better
off keeping the original text.
13. For developers
Three hooks, read from the code and verified:
marlys_confirm_needed — filter
Decides whether a registration requires confirmation. Return false to
exempt a case.
add_filter( 'marlys_confirm_needed', function ( $besoin, $user_id ) {
return user_can( $user_id, 'edit_posts' ) ? false : $besoin;
}, 10, 2 );
marlys_confirm_confirmed — action
Fired the moment an account is confirmed. This is where you subscribe someone to a
newsletter, add a role, or credit a welcome benefit.
add_action( 'marlys_confirm_confirmed', function ( $user_id ) {
( new WP_User( $user_id ) )->add_role( 'customer' );
} );
marlys_confirm_can_delete — filter
The last word before the automatic cleanup deletes an account that was never confirmed.
Return false to keep it.
marlys_confirm_locale — filter
Forces the language of the email and of the confirmation page.
Knowing where an account stands
MConf_Token_Manager::is_confirmed( $user_id ); // true / false
MConf_Token_Manager::is_pending( $user_id ); // pending
This is what you ask, in soft mode, to close one particular feature.
14. When an email doesn’t arrive
In order, from the most frequent to the rarest.
1. Can the site send at all?
Send yourself the test email from the settings. If that does not arrive
either, the problem is not in this plugin: it is the site’s own sending. Install an SMTP
plugin and have your email go out through a real server — shared hosting sending directly
is very often refused.
2. Is the message in the spam folder?
This is the commonest case. Three things help a great deal: a sender on
your domain, a correct SPF record, and your site’s logo inside the
message.
3. Is the address right?
Open the account’s profile: a typo shows up at once. Correct the address, then
Resend the confirmation.
4. The button does not work for that person
The link is written out in full under the button, in every template: ask them to copy it
into their browser.
5. “This link is not valid”
The link has already been used, or a newer email has gone out since — a resend cancels
the previous link. The last email received is always the right one.
An email that “goes out” is not an email that arrives. If your site reports
a successful send while nothing arrives, look for a plugin intercepting outgoing mail — a
demonstration or staging site often installs one, silently.
15. What the plugin writes, and what it erases
No table is created. Everything lives in the account’s own data:
| Item | What it is for |
|---|---|
| status | pending or confirmed |
| token fingerprint | checking the link without ever storing it |
| expiry | the date beyond which the link is worthless |
| last send, number of sends | delay between two resends, statistics |
| confirmation date | column in the list, average time |
| source | WordPress, WooCommerce, third-party form |
To these are added the settings, the signing secret belonging to the site, and — for the
professional edition — the licence key and its state.
Nothing comes to us
No data about your members leaves your site. The only outside communication is the
licence check: it sends the key, the domain name, the plugin version and the WordPress
version. Nothing else. The free edition calls no server at all.
On uninstall
The settings and every mark placed on the accounts are erased. No account is
deleted: removing a plugin is not a request to delete its members. The accounts
remain, only nothing distinguishes them any more.