Title: Double Opt-In Helper
Author: Rock Lobster Inc.
Published: <strong>2021 年 12 月 10 日</strong>
Last modified: 2024 年 5 月 7 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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

# Double Opt-In Helper

 由 [Rock Lobster Inc.](https://profiles.wordpress.org/rocklobsterinc/) 開發

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

 * [詳細資料](https://tw.wordpress.org/plugins/doi-helper/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/doi-helper/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/doi-helper/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/doi-helper/#developers)

 [技術支援](https://wordpress.org/support/plugin/doi-helper/)

## 外掛說明

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.

## 安裝方式

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

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Double Opt-In Helper〉的開發相關工作。

參與者

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

〈Double Opt-In Helper〉外掛目前已有 2 個本地化語言版本。 感謝[全部譯者](https://translate.wordpress.org/projects/wp-plugins/doi-helper/contributors)
為這個外掛做出的貢獻。

[將〈Double Opt-In Helper〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/doi-helper)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/doi-helper/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/doi-helper/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/doi-helper/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/doi-helper/)。

## 變更記錄

#### 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.

## 中繼資料

 *  版本 **1.0**
 *  最後更新 **2 年前**
 *  啟用安裝數 **100+**
 *  WordPress 版本需求 ** 6.4 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.5.8**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/doi-helper/)、[German](https://de.wordpress.org/plugins/doi-helper/)、
   及 [Japanese](https://ja.wordpress.org/plugins/doi-helper/).
 *  [將這個外掛本地化為你的母語版本](https://translate.wordpress.org/projects/wp-plugins/doi-helper)
 * 標籤:
 * [consent](https://tw.wordpress.org/plugins/tags/consent/)[Opt-in](https://tw.wordpress.org/plugins/tags/opt-in/)
   [privacy](https://tw.wordpress.org/plugins/tags/privacy/)
 *  [進階檢視](https://tw.wordpress.org/plugins/doi-helper/advanced/)

## 評分

這個項目尚無任何評論記錄。

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

[查看全部使用者評論](https://wordpress.org/support/plugin/doi-helper/reviews/)

## 參與者

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

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/doi-helper/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://contactform7.com/donate/)