Create membership action

This action lets you create a membership via the Restrict Content Pro integration. Use it to automate you daily work ans 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 free membership was activated 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 course access was granted 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 response was added to a ticket via The Fluent Support Logo for our WP Webhooks integration Fluent Support, 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 course 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.
When a membership has expired via The Paid Membership Pro Logo for our WP Webhooks integration Paid Memberships Pro, create a membership via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro.
When a referral status changed via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP, create a membership via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro.
When a user password was changed 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 membership was created via The WooCommerce Memberships Logo for our WP Webhooks integration WooCommerce Memberships, create a membership via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro.
When a profile photo was updated 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 an export was created via The WP All Export Logo for our WP Webhooks integration WP All Export, create a membership via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro.
When a cover photo was updated 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 contact was deleted via The FluentCRM Logo for our WP Webhooks integration FluentCRM, create a membership via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro.
When a WordPress hook was fired 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 shortcode was called 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 coupon was restored via The Woocommerce Logo for our integration WooCommerce, 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 a form was submitted via The WPForms Logo for our integration WPForms, 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 coupon was deleted via The Woocommerce Logo for our integration WooCommerce, create a membership via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro.
When a license status was updated 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.

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.