Membership Level

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 membership-level command for Restrict Content Pro version 3.5.9 allows you to create, update, delete, list, and get membership levels.

Options:

  • wp rcp membership-level list
  • wp rcp membership-level list --format='count'
  • wp rcp membership-level list --format='ids'
  • wp rcp membership-level list --field=name
  • wp rcp membership-level list --fields=id,name,description
  • wp rcp membership-level get 1
  • wp rcp membership-level get 1 --field=name
  • wp rcp membership-level delete 1
  • wp rcp membership-level delete 1 2 3
  • wp rcp membership-level create --name='example'
  • wp rcp membership-level create --name='example 2' --status='active'
  • wp rcp membership-level create --name='example 3' --porcelain
  • wp rcp membership-level update 1 --name='1 Month Recurring (Updated)'
  • wp rcp membership-level update 1 2 --price=20

Examples:

Get a full list of all Member Levels:
wp rcp membership-level list

list.png

 

Create a new, active Member Level named example 2:
wp rcp membership-level create --name='example 2' --status='active'

create.png

 

Have more questions? Submit a request