Create Membership Level
Creates a new Paid Memberships Pro membership level with its price, optional recurring billing, trial and expiration, and puts it in a level group. Sign-ups to the new level stay closed unless allow_signups is true, so it is hidden from the levels page and checkout until someone opens it deliberately. Nobody is charged or emailed, and no content is restricted to it yet. Reversible: the level can be deleted under Memberships > Settings > Levels while nobody holds it. Call mosmcp/pmpro-list-levels first to check the name is free and to get group IDs.
Also known as: add a membership level, new membership plan, create a tier, add a pricing plan.
| Property | Value |
|---|---|
| Ability slug | mosmcp/pmpro-create-level |
| Wire tool name | mosmcp__pmpro-create-level |
| Category | Paid Memberships Pro (mosmcp-pmpro) |
| Plan | Pro |
Required access
| Requirement | Value |
|---|---|
| Capability | pmpro_membershiplevels |
| Minimum default role | Administrator |
| Annotations | readOnly: false · destructive: false · idempotent: false · openWorld: false |
Input schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| name | string | Yes | — | The level name members see, for example "Gold". Must not match an existing level's name. |
| description | string | — | Optional description shown on the levels page and at checkout. Basic HTML is allowed. | |
| confirmation | string | — | Optional message shown to a new member after checkout. Basic HTML is allowed. | |
| initial_payment | number (min 0) | — | Amount charged at checkout, in the site currency. Defaults to 0. | |
| billing_amount | number (min 0) | — | Recurring amount charged every billing cycle. Defaults to 0, meaning no recurring billing. | |
| cycle_number | integer (min 1) | — | Bill every this many cycle_periods, for example 3 with "month" for quarterly. Defaults to 1. Only for a recurring level. | |
| cycle_period | string (one of day, week, month, year) |
— | The billing cycle unit. Required when billing_amount is above 0. | |
| billing_limit | integer (min 0) | — | How many recurring payments to take in all; 0 (the default) bills until cancelled. Only for a recurring level. | |
| trial_amount | number (min 0) | — | Optional lower amount charged for the first trial_limit recurring payments. Needs trial_limit. | |
| trial_limit | integer (min 0) | — | How many recurring payments are charged at trial_amount. Only for a recurring level. | |
| expiration_number | integer (min 1) | — | Optional: memberships of this level end this many expiration_periods after checkout. Needs expiration_period. | |
| expiration_period | string (one of hour, day, week, month, year) |
— | The unit for expiration_number. | |
| allow_signups | boolean | false |
Whether new members can sign up for this level straight away. Defaults to false, so the level stays off the public levels page and checkout until it is opened. | |
| group_id | integer (min 1) | — | Optional level group to put the level in, as listed by mosmcp/pmpro-list-levels. Defaults to the first group. |
Output schema
| Field | Type | Required | Description |
|---|---|---|---|
| level_id | integer | Yes | |
| name | string | Yes | |
| description | string | Plain text, trimmed to 300 characters. | |
| allow_signups | boolean | Yes | Whether new members can sign up. When false the level is hidden from the levels page and checkout refuses it. |
| group_id | integer | Yes | The level group, or 0 when the level is in none. |
| group_name | string | ||
| initial_payment | number (min 0) | Charged at checkout. | |
| billing_amount | number (min 0) | Charged every billing cycle; 0 when the level does not recur. | |
| cycle_number | integer | ||
| cycle_period | string | day, week, month or year; empty when the level does not recur. | |
| billing_limit | integer | Recurring payments in all; 0 means until cancelled. | |
| trial_amount | number (min 0) | ||
| trial_limit | integer | Recurring payments charged at trial_amount; 0 means no trial. | |
| expiration_number | integer | 0 when memberships of this level never expire. | |
| expiration_period | string | ||
| is_free | boolean | ||
| is_recurring | boolean | ||
| cost_text | string | The price as Paid Memberships Pro words it for members. | |
| expiration_text | string | ||
| active_members | integer | Members who hold this level now. | |
| edit_url | string | ||
| checkout_url | string | Where new members sign up; empty while sign-ups are closed or when the site has no checkout page. | |
| notes | string[] |
| << Previous | Next >> |
|---|---|
| Change Member Level | List Membership Levels |
For more information about the Secure MCP Server for WordPress plugin, explore the following resources:
Product Overview | Pricing | Try for Free | Documentation
If you have any questions regarding plugin configuration, pricing plans or licensing, please contact us or mail us at aisupport@xecurify.com.