Title: Double Opt-In Helper
Author: Rock Lobster Inc.
Published: <strong>10 Dicembre 2021</strong>
Last modified: 7 Maggio 2024

---

Ricerca i plugin

Questo plugin **non è stato testato con le ultime 3 versioni principali (major releases)
di WordPress**. Potrebbe non essere più mantenuto, o supportato, e potrebbe presentare
problemi di compatibilità se utilizzato con versioni più recenti di WordPress.

![](https://s.w.org/plugins/geopattern-icon/doi-helper.svg)

# Double Opt-In Helper

 Di [Rock Lobster Inc.](https://profiles.wordpress.org/rocklobsterinc/)

[Scarica](https://downloads.wordpress.org/plugin/doi-helper.zip)

 * [Dettagli](https://it.wordpress.org/plugins/doi-helper/#description)
 * [Recensioni](https://it.wordpress.org/plugins/doi-helper/#reviews)
 *  [Installazione](https://it.wordpress.org/plugins/doi-helper/#installation)
 * [Sviluppo](https://it.wordpress.org/plugins/doi-helper/#developers)

 [Supporto](https://wordpress.org/support/plugin/doi-helper/)

## Descrizione

Double Opt-In Helper is a WordPress plugin that helps developers implement the double
opt-in process in their plugins.

#### What is double opt-in?

Double opt-in is a procedure used to confirm user’s consent. Today, service providers
are required to obtain clear consent from users prior to collecting or using their
personal data. In some situations, however, asking the user to tick an “I agree.”
checkbox is not sufficient. Double opt-in serves a useful role in such situations.

A typical double opt-in process starts by the service provider sending an email 
message to the user. The message includes a URL link to the provider’s website and
asks the user to click the link if they agree on conditions. Usually, the URL includes
some sort of unique random code that works as a token to confirm the user’s consent.

By doing this, the service provider can confirm that the real user (not a bot or
someone else) has consented, because only the user should be able to access messages
to their email address.

#### I’m a developer. How can I use this plugin?

First, register an “agent” who can handle double opt-in sessions for you, and knows
what to do when a user opts-in.

To register an agent, use the `doihelper_register_agent()` function. `doihelper_register_agent()`
takes two parameters: the name of the agent (required), and an optional associative
array of arguments. The available arguments are:

 * `acceptance_period` — The length of time (in seconds) for how long a double opt-
   in session remains live. Default value: 86400 (24 hours)
 * `optin_callback` — The callback function that will be called when a user opts-
   in.
 * `email_callback` — The callback function that will be called to send a confirmation
   email.

After registering an agent, start a double opt-in session by calling the `doihelper_start_session()`
function. `doihelper_start_session()` takes two parameters: the name of the agent(
required), and an optional associative array of arguments. The available arguments
are:

 * `email_to` — The recipient’s email address, used for the confirmation email. 
   If you omit this argument, no email will be sent. If you do not provide this 
   argument, you will need to provide the user with the confirmation link another
   way.
 * `properties` — The properties array of the session. This array is to be passed
   to the `optin_callback` function as its only parameter. While you can include
   any information into this, the primary purpose of it is to pass user-related 
   data to the opt-in callback.

The session data will be stored in the database until the user opts-in, or the acceptance
period (from `doihelper_register_agent()`) expires.

## Installazione

 1. Upload the entire `doi-helper` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the **Plugins** screen (**Plugins > Installed Plugins**).

## Recensioni

Non ci sono recensioni per questo plugin.

## Contributi e sviluppo

“Double Opt-In Helper” è un software open source. Le persone che hanno contribuito
allo sviluppo di questo plugin sono indicate di seguito.

Collaboratori

 *   [ Rock Lobster Inc. ](https://profiles.wordpress.org/rocklobsterinc/)
 *   [ Takayuki Miyoshi ](https://profiles.wordpress.org/takayukister/)

“Double Opt-In Helper” è stato tradotto in 2 lingue. Grazie a [chi traduce](https://translate.wordpress.org/projects/wp-plugins/doi-helper/contributors)
per il contributo.

[Traduci “Double Opt-In Helper” nella tua lingua.](https://translate.wordpress.org/projects/wp-plugins/doi-helper)

### Ti interessa lo sviluppo?

[Esplora il codice](https://plugins.trac.wordpress.org/browser/doi-helper/) segui
il [repository SVN](https://plugins.svn.wordpress.org/doi-helper/), segui il [log delle modifiche](https://plugins.trac.wordpress.org/log/doi-helper/)
tramite [RSS](https://plugins.trac.wordpress.org/log/doi-helper/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0

 * Bumps up the minimum required WordPress version to 6.1.
 * Bumps up the minimum required PHP version to 7.4.

#### 0.73

Initial release.

## Meta

 *  Versione **1.0**
 *  Ultimo aggiornamento **2 anni fa**
 *  Installazioni attive **90+**
 *  Versione WordPress ** 6.4 o superiore **
 *  Testato fino alla versione **6.5.8**
 *  Versione PHP ** 7.4 o superiore **
 *  Lingue
 * [English (US)](https://wordpress.org/plugins/doi-helper/), [German](https://de.wordpress.org/plugins/doi-helper/),
   e [Japanese](https://ja.wordpress.org/plugins/doi-helper/).
 *  [Traduci nella tua lingua](https://translate.wordpress.org/projects/wp-plugins/doi-helper)
 * Tag
 * [consent](https://it.wordpress.org/plugins/tags/consent/)[Opt-in](https://it.wordpress.org/plugins/tags/opt-in/)
   [privacy](https://it.wordpress.org/plugins/tags/privacy/)
 *  [Visualizzazione avanzata](https://it.wordpress.org/plugins/doi-helper/advanced/)

## Valutazioni

Non sono state ancora inviate recensioni.

[Your review](https://wordpress.org/support/plugin/doi-helper/reviews/#new-post)

[Vedi tutte le recensioni](https://wordpress.org/support/plugin/doi-helper/reviews/)

## Collaboratori

 *   [ Rock Lobster Inc. ](https://profiles.wordpress.org/rocklobsterinc/)
 *   [ Takayuki Miyoshi ](https://profiles.wordpress.org/takayukister/)

## Supporto

Hai qualcosa da dire? Ti serve aiuto?

 [Chiedi nel forum di supporto](https://wordpress.org/support/plugin/doi-helper/)

## Donazioni

Vuoi sostenere le versioni future?

 [ Fai una donazione per lo sviluppo ](https://contactform7.com/donate/)