Opt-out
Marc Wagner
March 11, 2025
The double opt-in plugin has the option of offering the visitor the option of unsubscribing from a previously performed opt-in with an opt-out procedure.
Create opt-out page #
First of all, you need a new page on which all further information will later be displayed for visitors. To do this, create a new page in the WordPress backend and insert the following shortcode.
[f12-cf7-doubleoptin-optout-list]
Of course, you can continue to design the page and add additional content. It is only important that the shortcode is inserted on the page. The list is later displayed as follows and allows the visitor to unsubscribe via the Opt-Out now! link.

Configuration #
Next, switch to Forge12 Double Opt-in > Opt-out in the WordPress backend. There you can make all further settings for the opt-out.

First select the previously created page in the selection field under Opt-Out Page. Then configure the opt-out email to be sent to the visitor.
If you do not want to use the standard email template, you can insert your own HTML code in the text field next to Body. Use the following shortcode to place the opt-out link where you want it:
[doubleoptin_optout_url]
This could look as follows:
<a href="[doubleoptin_optout_url]">[doubleoptin_optout_url]</a>
Make sure to integrate the shortcode for the opt-out in the email. This automatically generates the link to the opt-out page where the visitor can unsubscribe from all previously performed opt-ins.
E‑mail template
Here is the template that has been integrated into the plugin by default:
<table role="presentation" border="0" cellpadding="0" cellspacing="0" class="body" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background-color: #f6f6f6;"> <tr> <td style="font-family: sans-serif; font-size: 14px; vertical-align: top;"> </td> <td class="container" style="font-family: sans-serif; font-size: 14px; vertical-align: top; display: block; Margin: 0 auto; max-width: 580px; padding: 10px; width: 580px;"> <div class="content" style="box-sizing: border-box; display: block; Margin: 0 auto; max-width: 580px; padding: 10px;"> <!-- START CENTERED WHITE CONTAINER --> <table role="presentation" class="main" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background: #ffffff; border-radius: 3px;"> <!-- START MAIN CONTENT AREA --> <tr> <td class="wrapper" style="font-family: sans-serif; font-size: 14px; vertical-align: top; box-sizing: border-box; padding: 20px;"> <table role="presentation" border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;"> <tr> <td style="font-family: sans-serif; font-size: 14px; vertical-align: top;"> <p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">Dear Mr./Mrs.,<br><br> This email address was just used to request access to the opt-out page on <a href="[doubleoptin_optout_url]">[doubleoptin_optout_url]</a>. If you did not submit this request, please ignore this email and we apologize for disturbing you.<br><br></p> <table role="presentation" border="0" cellpadding="0" cellspacing="0" class="btn btn-primary" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; box-sizing: border-box;"> <tbody> <tr> <td align="left" style="font-family: sans-serif; font-size: 14px; vertical-align: top; padding-bottom: 15px;"> <table role="presentation" border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: auto;"> <tbody> <tr> <td style="font-family: sans-serif; font-size: 14px; vertical-align: top; background-color: #3498db; border-radius: 5px; text-align: center;"> <a href="[doubleoptin_optout_url]" target="_blank" style="display: inline-block; color: #ffffff; background-color: #3498db; border: solid 1px #3498db; border-radius: 5px; box-sizing: border-box; cursor: pointer; text-decoration: none; font-size: 14px; font-weight: bold; margin: 0; padding: 12px 25px; text-transform: capitalize; border-color: #3498db;">OPT-OUT SETTINGS</a> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">If you have trouble clicking on the button above please copy the following link into your internet browser: <br><a href="#">[doubleoptin_optout_url]</a></p> <p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">Thank you.<br>Kind regards,<br>Your Newsletter Team.</p> </td> </tr> </table> </td> </tr> <!-- END MAIN CONTENT AREA --> </table> <!-- START FOOTER --> <div class="footer" style="clear: both; Margin-top: 10px; text-align: center; width: 100%;"> <table role="presentation" border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;"> <tr> <td class="content-block" style="font-family: sans-serif; vertical-align: top; padding-bottom: 10px; padding-top: 10px; font-size: 12px; color: #999999; text-align: center;"> <span class="apple-link" style="color: #999999; font-size: 12px; text-align: center;">Maxmuster Company, Musterstreet 123, Mustercity 71337</span> </td> </tr> </table> </div> <!-- END FOOTER --> <!-- END CENTERED WHITE CONTAINER --> </div> </td> </tr> </table>
Opt-out form #
The last step is to integrate the opt-out form. Use the following shortcode for this:
[f12-cf7-doubleoptin-optout-form]
The shortcode creates a simple form that the visitor can use to access the opt-out process.

As soon as the form has been submitted, a one-time link is generated and sent to the e‑mail address provided. This link is only valid temporarily and is automatically deleted after the expiry date.
The shortcode for the form can be placed anywhere on the page. The display can then be adapted either via the WordPress Customizer or using separate CSS files.

Article from:
Marc Wagner
Hi Marc here. I’m the founder of Forge12 Interactive and have been passionate about building websites, online stores, applications and SaaS solutions for businesses for over 20 years. Before founding the company, I already worked in publicly listed companies and acquired all kinds of knowledge. Now I want to pass this knowledge on to my customers.