Title: Donate to Access Content
Author: Rupak Dhiman
Published: <strong>2017 年 11 月 9 日</strong>
Last modified: 2026 年 9 月 3 日

---

搜索插件

![](https://ps.w.org/cip-dtac-for-give/assets/banner-772x250.jpg?rev=1761516)

![](https://ps.w.org/cip-dtac-for-give/assets/icon-256x256.jpg?rev=1761516)

# Donate to Access Content

 作者：[Rupak Dhiman](https://profiles.wordpress.org/rupakdhiman/)

[下载](https://downloads.wordpress.org/plugin/cip-dtac-for-give.3.0.0.zip)

 * [详情](https://cn.wordpress.org/plugins/cip-dtac-for-give/#description)
 * [评价](https://cn.wordpress.org/plugins/cip-dtac-for-give/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/cip-dtac-for-give/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/cip-dtac-for-give/#developers)

 [支持](https://wordpress.org/support/plugin/cip-dtac-for-give/)

## 描述

Donate to Access Content is a free, unofficial add-on for [GiveWP](https://wordpress.org/plugins/give/).
It is not an official GiveWP product.

Site owners can hide posts, pages, custom post types, category archives, or a portion
of a page until a visitor donates through a Give form. After a completed donation,
that donor can return and see the original content.

#### What you can restrict

 * Individual pages and posts (settings lists or the Restrict with donation metabox)
 * Category and custom taxonomy archive pages
 * Entire public custom post types
 * A portion of a page with the `[cip_donate_to_access_content]` shortcode or the
   Restricted Content block

Give donation form pages are never treated as restricted content.

#### After a donation

Access is based on Give donors, not a WordPress login. The same donor can return
later as:

 * A logged-in WordPress user linked to that Give donor
 * A guest whose browser still has the guest-access cookie
 * A guest who uses “Already donated?” and opens the signed email link

Optional settings include a minimum donation amount, access expiry in days, and 
how restricted posts appear in REST, RSS, search, and oEmbed.

#### Requirements

 * WordPress 6.0 or later
 * PHP 8.1 or later
 * GiveWP active (legacy v2 forms and visual-builder v3 / v4 forms)
 * A published Give donation form to use as the default gate

Development source: https://github.com/contriveitup/give-add-on-donate-to-access-
content

#### Third-party libraries

Admin settings use Select2 4.0.13 (MIT License), bundled in assets/vendor/select2/.
Unminified JS and CSS are included next to the minified files.

## 区块

该插件提供了 2 个区块.

 *   Restricted Content
 *   My Unlocked Content

## 安装

 1. Install and activate [GiveWP](https://wordpress.org/plugins/give/).
 2. Install and activate Donate to Access Content.
 3. Create or choose a published Give donation form (Donations  All Forms).
 4. Go to Settings  DTAC, set the default form, and choose what to restrict.
 5. Save changes, then visit a restricted URL in a private/incognito window to confirm
    guests see the gate.

## 常见问题

### Is this an official GiveWP add-on?

No. It requires GiveWP but is maintained independently.

### What shortcode restricts content?

[cip_donate_to_access_content form_id=”1″ show=”form”] wraps the secret content.`
form_id` is required. `show` can be `form` (default) or `message`.

List content the current donor has unlocked with `[dtac_my_unlocked_content]`.

### If a category is restricted, can visitors still open a post in that category?

Yes, unless that post is also restricted. Category and custom-taxonomy settings 
gate archives, not every singular post in the term.

### Who gets access after a donation?

Give donors. A logged-in subscriber without a matching donor record still sees the
gate.

### Can guests recover access after clearing cookies?

Yes. On gated output, use “Already donated?” with the email from the donation. If
that address has qualifying unlocks, WordPress sends a signed link that expires 
in one hour. The confirmation notice is the same whether or not the email has donations.

### Will a small donation unlock paid content?

Not if you set a minimum donation amount globally or on the metabox. `0` means any
completed donation qualifies.

### Does access last forever?

By default yes. Set access expiry in days globally or per post. Metabox `0` means
that post never expires, even if a global TTL is set.

### What happens if I update to 3.0 on PHP older than 8.1?

Version 3.0 requires PHP 8.1. If the plugin is already active on PHP 7.4 or 8.0,
WordPress still loads it after an update. The bootstrap shows an admin error and
deactivates the plugin instead of causing a fatal error. Upgrade PHP, then activate
the plugin again.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Donate to Access Content」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Rupak Dhiman ](https://profiles.wordpress.org/rupakdhiman/)

[帮助将「Donate to Access Content」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/cip-dtac-for-give)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/cip-dtac-for-give/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/cip-dtac-for-give/)，或通过[RSS](https://plugins.trac.wordpress.org/log/cip-dtac-for-give/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/cip-dtac-for-give/)。

## 更新日志

#### 3.0.0: September 3, 2026

 * Added: GiveWP 3.x / 4.x visual-builder grant path alongside legacy v2 forms.
 * Added: Per-post metabox for restrict, donation form, minimum amount, and access
   expiry.
 * Added: Blocks dtac/restricted-content and dtac/my-unlocked-content.
 * Added: Guest restore via signed email link and [dtac_my_unlocked_content] shortcode.
 * Added: REST, feed, search, and oEmbed leak protection.
 * Added: Donations-list Unlocked Content column and settings-page unlock counts.
 * Added: Settings page visual refresh with grouped sections.
 * Added: Local Select2 4.0.13 assets (no CDN) for WordPress.org guideline compliance.
 * Updated: Requires WordPress 6.0+, PHP 8.1+, GiveWP 4.16.x (tested up to WordPress
   7.1).
 * Updated: Ships a plugin autoloader so Composer vendor is not required in the 
   zip.
 * Fixed: Access-grant spoofing via content-ID whitelist.
 * Fixed: Cache headers on restricted URLs.
 * Fixed: Uninstall now removes plugin settings and related donation/donor meta.
 * Fixed: Updating on PHP older than 8.1 deactivates with an admin notice instead
   of a parse fatal.

See changelog.txt for earlier versions.

#### 2.1.0: July 30, 2022

 * Added: Function dtac_get_give_forms to list Give forms in Admin Settings.
 * Added: Function input_default_select for default values in the select box.
 * Updated: NPM packages and code improvements.

## 额外信息

 *  版本 **3.0.0**
 *  最后更新：**2 月前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **7.1.4**
 *  PHP 版本 ** 8.1 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/cip-dtac-for-give/)
 * 标签
 * [donate](https://cn.wordpress.org/plugins/tags/donate/)[donations](https://cn.wordpress.org/plugins/tags/donations/)
   [give](https://cn.wordpress.org/plugins/tags/give/)[membership](https://cn.wordpress.org/plugins/tags/membership/)
   [restrict content](https://cn.wordpress.org/plugins/tags/restrict-content/)
 *  [高级视图](https://cn.wordpress.org/plugins/cip-dtac-for-give/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/cip-dtac-for-give/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/cip-dtac-for-give/reviews/)

## 贡献者

 *   [ Rupak Dhiman ](https://profiles.wordpress.org/rupakdhiman/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/cip-dtac-for-give/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.me/contriveitup)