| 开发者 | contentpass |
|---|---|
| 更新时间 | 2026年7月9日 19:26 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
manage_options capability by default (filterable via cp4wp_required_capability).
contentpass-integration folder to the /wp-content/plugins/ directory, or install the ZIP from your distribution package.Yes. You need Contentpass-side configuration (including property URL / CNAME as required by Contentpass). Use Request Contract in the admin menu if you need to contact Contentpass.
now.js is required by the Contentpass platform. It is not optional custom code and not pasted by the publisher. The plugin loads it only from the publisher’s configured Contentpass property base URL (for example https://cp.example.com/now.js) after that URL is validated during setup. This script powers subscription and consent integration together with the official Contentpass stubs from static.contentpass.net. Without now.js, Contentpass cannot function on the site.
This is an optional list of external script URLs only (for example your ad network’s https://…/ads.js). Publishers enter URLs in dedicated fields; the plugin does not accept arbitrary HTML, inline JavaScript, PHP, or CSS. Each value is sanitized (esc_url_raw), must use http:// or https://, and is output only as a programmatic <script src="…" async defer> tag after consent. Legacy free-form “custom code” markup was removed in favour of this structured URL list. This matches the consent workflow: third-party tags blocked before consent may be loaded again after the visitor accepts.
While your Contentpass property is not yet approved or not yet live, staging mode is active automatically: Contentpass is shown only to logged-in users with Editor or Administrator roles, or to visitors using an authorized ?cpdebug=staging URL. You cannot turn staging off manually during onboarding. Once Contentpass has approved your property and you have set it to live in the publisher dashboard, staging ends automatically and Contentpass is served to all visitors. Changes from the dashboard may take up to 10 minutes to apply.
The plugin header declares WordPress 6.3+ and PHP 7.4+. Newer releases may raise these; check the plugin main file after updates.
Yes. Developers can use the cp4wp_required_capability filter to require a different capability than manage_options.
Yes, when configured. See the External services section above for each provider, what is transmitted, and links to terms and privacy policies. Only your selected CMP and Contentpass endpoints are used.