Create membership action

This action lets you create a membership via the Restrict Content Pro integration. Use it to automate you daily work and save time and resources.

How to create a membership

This section aims to help you getting started on how to create a membership via Restrict Content Pro. Simply select one of your prefered automation manuals down below and start automating your WordPress website in no time.

"Create membership" arguments

Our so-called arguments are values that you can use to customize your request. They allow you to send specific data to the Create membership action which is then handled accordingly to the described purpose. You can use the arguments that you would like to send values for.
To learn more about it, please see the Setup Guide above.
user *

Set this argument to the id of the user. In case you do not have the user id, you can also assign the user via a given email.

membership_level *

The ID of the membership level that is used for the membership.

status

The status slug of the membership. Default: pending

auto_renew

Set this argument to yes if you want to auto-renew the membership.

gateway

Define your gateway. Default: manual

gateway_customer_id

The gateway customer id.

gateway_subscription_id

The gateway subscription id.

subscription_key

A subscription key (usually the transaction id). If you leave it empty, we generate it autoamtically for you.

expiration_date

A custom expiration date. If you leave it empty, we calculate it based on the membership level.

do_action

Advanced: Register a custom action after Webhooks Pro fires this webhook. More infos are in the description.

wpwh_call_action

(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )

Connection examples

Get inspired on how to use the "Create membership" action within our Restrict Content Pro integrations. Down below you will find various examples with our other integrations.
When a transaction was created via The Jetpack CRM Logo for our WP Webhooks integration Jetpack CRM, create a membership via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro.
When a plugin was deleted via The WordPress Logo for our integration WordPress, create a membership via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro.
When a subscription payment failed via The WooCommerce Subscriptions Logo for our WP Webhooks integration WooCommerce Subscriptions, create a membership via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro.
When a user was deleted via The WordPress Logo for our integration WordPress, create a membership via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro.
When a user was created via The WordPress Logo for our integration WordPress, create a membership via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro.
When a mockup comment was created via The ProjectHuddle Logo for our WP Webhooks integration ProjectHuddle, create a membership via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro.
When a license was deactivated via The Easy Digital Downloads Logo for our integration Easy Digital Downloads, create a membership via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro.
When a user logged in via The WP User Manager Logo for our WP Webhooks integration WP User Manager, create a membership via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro.
When a donation was refunded via The GiveWP Logo for our WP Webhooks integration GiveWP, create a membership via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro.
When all the cache was cleared via Breeze, create a membership via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro.
When a company was created via The Jetpack CRM Logo for our WP Webhooks integration Jetpack CRM, create a membership via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro.
When an assignment was uploaded via The LearnDash Logo for our WP Webhooks integration LearnDash, create a membership via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro.
When a IFTTT webhook request was received via The IFTTT Logo for our WP Webhooks integration IFTTT, create a membership via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro.
When an item was approved via The ProjectHuddle Logo for our WP Webhooks integration ProjectHuddle, create a membership via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro.
When a donation is processed via The GiveWP Logo for our WP Webhooks integration GiveWP, create a membership via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro.
When a Integrately webhook request was received via The Integrately Logo for our WP Webhooks integration Integrately, create a membership via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro.
When the site cache was cleared via The Cache Enabler Logo for our WP Webhooks integration Cache Enabler, create a membership via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro.
When a payment was completed via The Gravityforms Logo for our integration Gravity Forms, create a membership via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro.
When a paid membership expired via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro, create a membership via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro.
When a subscription status has changed via The Easy Digital Downloads Logo for our integration Easy Digital Downloads, create a membership via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro.
When a group access was removed via The LearnDash Logo for our WP Webhooks integration LearnDash, create a membership via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro.

More available Restrict Content Pro endpoints

Discover more of the available endpoints used for the Restrict Content Pro integration.
To learn more about a specific endpoint, simply click on it.
Full disclosure: When clicking on some of the links on our website and purchasing the related product and/or service, we may earn a commission free of any additional cost for you.