PHPackages                             wp-pay-extensions/restrict-content-pro - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. wp-pay-extensions/restrict-content-pro

ActiveWordpress-plugin[Payment Processing](/categories/payments)

wp-pay-extensions/restrict-content-pro
======================================

Restrict Content (Pro) driver for the WordPress payment processing library.

v4.9.0(4mo ago)529.5k1[2 issues](https://github.com/pronamic/wp-pronamic-pay-restrict-content-pro/issues)1GPL-3.0-or-laterPHPPHP &gt;=8.2CI failing

Since Dec 13Pushed 4mo ago4 watchersCompare

[ Source](https://github.com/pronamic/wp-pronamic-pay-restrict-content-pro)[ Packagist](https://packagist.org/packages/wp-pay-extensions/restrict-content-pro)[ Docs](http://www.wp-pay.org/extensions/restrict-content-pro/)[ RSS](/packages/wp-pay-extensions-restrict-content-pro/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (20)Versions (47)Used By (1)

WordPress Pay Extension: Restrict Content Pro
=============================================

[](#wordpress-pay-extension-restrict-content-pro)

**Restrict Content Pro driver for the WordPress payment processing library.**

Restrict Content Pro
--------------------

[](#restrict-content-pro)

To download the latest version of Restrict Content Pro the plugin updater API can be used. You have to replace `LICENSE` and `URL` in the following command. If you need a beta release you can set `beta` to `1`.

```
curl --request POST https://restrictcontentpro.com/ \
    --data "edd_action=get_version&license=LICENSE&item_name=restrict-content-pro&item_id=479&version=1.0.0&slug=restrict-content-pro&author=Restrict Content Pro Team&url=URL&beta=0" \
    | jq '.package'

```

### Edit Membership

[](#edit-membership)

In Restrict Content Pro version 3 or higher it is possible to edit memberships. Changes to a Restrict Content Pro membership can also influence the connected Pronamic Pay subscription:

[![Restrict Content Pro edit membership](documentation/restrict-content-pro-3-edit-membership.png)](documentation/restrict-content-pro-3-edit-membership.png)

#### Edit "Membership Level"

[](#edit-membership-level)

When you change the "Membership Level" of a Restrict Content Pro membership the connected Pronamic Pay subscription will be cancelled. If you click the Restrict Content Pro "Change Level" button you will see a confirmation modal dialog with the following text:

> Are you sure you want to change the membership level? The subscription will be cancelled at the payment gateway and this customer will not be automatically billed again.

If you confirm by selecting OK Restrict Content Pro will create a new membership. The other Restrict Content Pro membership will be marked as `disabled`. The new Restrict Content Pro membership will not be connected to a Pronamic Pay subscription.

#### Edit "Membership Status"

[](#edit-membership-status)

When you change the "Membership Status" of a Restrict Content Pro membership the connected Pronamic Pay subscription will be updated accordingly.

Restrict Content Pro statusPronamic Pay subscription statusActiveActiveExpiredExpiredCancelledCancelledPendingPending#### Edit "Date Created"

[](#edit-date-created)

Editing the Restrict Content Pro membership "Date Created" value will not affect the connected Pronamic Pay subscription. The Pronamic Pay subscription date will not be updated.

#### Edit "Expiration Date"

[](#edit-expiration-date)

Editing the Restrict Content Pro membership "Expiration Date" value will not affect the connected Pronamic Pay subscription. The Pronamic Pay subscription expiration date will not be updated. We are not updating this due to the following Restrict Content Pro notice:

> Changing the expiration date will not affect when renewal payments are processed.

[![Restrict Content Pro edit expiration date notice](documentation/restrict-content-pro-3-edit-expiration-date-notice.png)](documentation/restrict-content-pro-3-edit-expiration-date-notice.png)

#### Edit "Auto Renew"

[](#edit-auto-renew)

Editing the Restrict Content Pro membership "Auto Renew" value will not affect the connected Pronamic Pay subscription. The Pronamic Pay subscription will not be cancelled. We are not doing this due to the following Restrict Content Pro notice:

> Changing the recurring indicator will not set up or remove a subscription with the gateway. This checkbox is for updating RCP records only.

[![Restrict Content Pro edit auto renew notice](documentation/restrict-content-pro-3-edit-auto-renew-notice.png)](documentation/restrict-content-pro-3-edit-auto-renew-notice.png)

### Gateway supports

[](#gateway-supports)

Foreach Restrict Content Pro gateway it is possible to define which features are supported. In Restrict Content Pro version 3 the following supports values are available:

SupportDescription`one-time`one time payments`recurring`recurring payments`fees`fees`trial`free trialsSource:

In the Pronamic Pay extension we try to set the supports values as correct as possible for the different gateways. Restrict Content Pro however will not hide/show gateways based on the supports values.

Restrict Content Pro membership levels with a recurring can be paid with a one-time payment gateway like iDEAL. And unlimited membership levels can be paid with a recurring payment gateway like Direct Debit (mandate via iDEAL).

Once a user pays a recurring membership level with a one-time payment gateway, it will not be automatically renewed. Restrict Content Pro is not very clear about this, so make sure you inform your users about this!

Test
----

[](#test)

- Not logged in new membership.
- Logged in new membership.
- Logged in upgrade membership.
- Cancel membership.
- Discount code.
- Lifetime membership.
- Free trial.
- Fee.
- Free member.
- Billing Cycle: €7.00 initially, then €3.00 every day.

WP-CLI
------

[](#wp-cli)

### What is WP-CLI?

[](#what-is-wp-cli)

For those who have never heard before WP-CLI, here's a brief description extracted from the [official website](https://wp-cli.org/).

> **WP-CLI** is a set of command-line tools for managing WordPress installations. You can update plugins, set up multisite installs and much more, without using a web browser.

### Commands

[](#commands)

```
$ wp pronamic-pay restrict-content-pro
usage: wp pronamic-pay restrict-content-pro upgrade-216

See 'wp help pronamic-pay restrict-content-pro ' for more information on a specific command.
```

### Command `pronamic-pay restrict-content-pro upgrade-216 execute`

[](#command-pronamic-pay-restrict-content-pro-upgrade-216-execute)

Execute 2.1.6 upgrade.

```
$ wp pronamic-pay restrict-content-pro upgrade-216 execute
```

### Command `pronamic-pay restrict-content-pro upgrade-216 list-payments`

[](#command-pronamic-pay-restrict-content-pro-upgrade-216-list-payments)

List payments for 2.1.6 upgrade.

```
$ wp pronamic-pay restrict-content-pro upgrade-216 list-payments
```

### Command `pronamic-pay restrict-content-pro upgrade-216 list-subscriptions`

[](#command-pronamic-pay-restrict-content-pro-upgrade-216-list-subscriptions)

List subscriptions for 2.1.6 upgrade.

```
$ wp pronamic-pay restrict-content-pro upgrade-216 list-subscriptions
```

### Command `pronamic-pay restrict-content-pro upgrade-216 upgrade-subscriptions`

[](#command-pronamic-pay-restrict-content-pro-upgrade-216-upgrade-subscriptions)

Upgrade subscriptions for 2.1.6.

```
$ wp pronamic-pay restrict-content-pro upgrade-216 upgrade-subscriptions
```

```
$ wp pronamic-pay restrict-content-pro upgrade-216 upgrade-subscriptions --skip-no-match=true --reactivate=true --dry-run=false
```

Links
-----

[](#links)

- [Restrict Content Pro](https://restrictcontentpro.com/)
- [GitHub Restrict Content Pro](https://github.com/restrictcontentpro/restrict-content-pro)
-

###  Health Score

55

—

FairBetter than 98% of packages

Maintenance67

Regular maintenance activity

Popularity32

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity88

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 53.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~65 days

Recently: every ~34 days

Total

46

Last Release

133d ago

Major Versions

1.0.0 → 2.0.02018-05-14

2.3.2 → 3.0.02021-08-05

3.0.0 → 4.0.02022-01-10

PHP version history (6 changes)1.0.0PHP ^5.3

2.1.4PHP &gt;=5.6.20

v4.3.0PHP &gt;=8.0

v4.3.1PHP &gt;=7.4

v4.6.0PHP &gt;=8.1

v4.8.0PHP &gt;=8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/869674?v=4)[Remco Tolsma](/maintainers/remcotolsma)[@remcotolsma](https://github.com/remcotolsma)

---

Top Contributors

[![remcotolsma](https://avatars.githubusercontent.com/u/869674?v=4)](https://github.com/remcotolsma "remcotolsma (260 commits)")[![rvdsteege](https://avatars.githubusercontent.com/u/10371164?v=4)](https://github.com/rvdsteege "rvdsteege (228 commits)")

---

Tags

wp-pronamic-pay-extensionwordpresscontentextensionwppaypronamicrestrictpro

###  Code Quality

Static AnalysisPHPStan, Psalm, Rector

Type Coverage Yes

### Embed Badge

![Health badge](/badges/wp-pay-extensions-restrict-content-pro/health.svg)

```
[![Health](https://phpackages.com/badges/wp-pay-extensions-restrict-content-pro/health.svg)](https://phpackages.com/packages/wp-pay-extensions-restrict-content-pro)
```

###  Alternatives

[wp-pay-extensions/gravityforms

Gravity Forms driver for the WordPress payment processing library.

1133.3k2](/packages/wp-pay-extensions-gravityforms)[wp-pay/core

Core components for the WordPress payment processing library.

29119.8k97](/packages/wp-pay-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
