Opt-out

Marc Wag­ner

March 11, 2025

5 min read|

The dou­ble opt-in plug­in has the opti­on of offe­ring the visi­tor the opti­on of unsub­scrib­ing from a pre­vious­ly per­for­med opt-in with an opt-out pro­ce­du­re.

Create opt-out page #

First of all, you need a new page on which all fur­ther infor­ma­ti­on will later be dis­play­ed for visi­tors. To do this, crea­te a new page in the Word­Press backend and insert the fol­lo­wing short­code.

[f12-cf7-doubleoptin-optout-list]

Of cour­se, you can con­ti­nue to design the page and add addi­tio­nal con­tent. It is only important that the short­code is inser­ted on the page. The list is later dis­play­ed as fol­lows and allows the visi­tor to unsub­scri­be via the Opt-Out now! link.

image 7
Over­view of all com­ple­ted and pen­ding opt-ins

Configuration #

Next, switch to Forge12 Dou­ble Opt-in > Opt-out in the Word­Press backend. The­re you can make all fur­ther set­tings for the opt-out.

image 5
Opt-out set­tings

First sel­ect the pre­vious­ly crea­ted page in the sel­ec­tion field under Opt-Out Page. Then con­fi­gu­re the opt-out email to be sent to the visi­tor.

If you do not want to use the stan­dard email tem­p­la­te, you can insert your own HTML code in the text field next to Body. Use the fol­lo­wing short­code to place the opt-out link whe­re you want it:

[doubleoptin_optout_url]

This could look as fol­lows:

<a href="[doubleoptin_optout_url]">[doubleoptin_optout_url]</a>

Make sure to inte­gra­te the short­code for the opt-out in the email. This auto­ma­ti­cal­ly gene­ra­tes the link to the opt-out page whe­re the visi­tor can unsub­scri­be from all pre­vious­ly per­for­med opt-ins.

E‑mail template

Here is the tem­p­la­te that has been inte­gra­ted into the plug­in 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 inte­gra­te the opt-out form. Use the fol­lo­wing short­code for this:

[f12-cf7-doubleoptin-optout-form]

The short­code crea­tes a simp­le form that the visi­tor can use to access the opt-out pro­cess.

image 6
Exam­p­le opt-out form

As soon as the form has been sub­mit­ted, a one-time link is gene­ra­ted and sent to the e‑mail address pro­vi­ded. This link is only valid tem­po­r­a­ri­ly and is auto­ma­ti­cal­ly dele­ted after the expiry date.

The short­code for the form can be pla­ced any­whe­re on the page. The dis­play can then be adapt­ed eit­her via the Word­Press Cus­to­mi­zer or using sepa­ra­te CSS files.

88e86fcb816eff22bc917094df2862d8dd5c0e978b333e6dd5f36f808990c261 96

Artic­le from:

Marc Wag­ner

Hi Marc here. I’m the foun­der of Forge12 Inter­ac­ti­ve and have been pas­sio­na­te about buil­ding web­sites, online stores, appli­ca­ti­ons and SaaS solu­ti­ons for busi­nesses for over 20 years. Befo­re foun­ding the com­pa­ny, I alre­a­dy work­ed in publicly lis­ted com­pa­nies and acqui­red all kinds of know­ledge. Now I want to pass this know­ledge on to my cus­to­mers.

Do you have a ques­ti­on? Plea­se lea­ve a com­ment