Memberships
Note: This is part of the developer docs and is considered custom code.
Unfortunately, we cannot provide support for custom code at this time as we do not have the additional resources that would be necessary to provide support for custom code.
If you need assistance with this, please reach out to our list of consultants for further assistance:
https://codeable.io/developers/restrict-content-pro/
The wp rcp memberships command allows you to get and create membership records.
Options:
–id=
–email=
–create=
–range=
–status=
–level=
Note: Creating memberships also creates corresponding user accounts, customer records, and payment records.
Examples:
Get a specific membership record by ID:
wp rcp memberships –id=206
Create 2 “active” memberships, randomly created over the last 180 days:
wp rcp memberships –create=2 –range=180 –status=active