Add user membership action

This action lets you add a user membership via the WooCommerce Memberships integration. Use it to automate you daily work and save time and resources.

How to add a user membership

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

"Add user 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 Add user 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 *

The user you want to assign the membership to. This argument accepts either the user ID or the user email.

membership_plan_id *

The membership plan id.

product_id

A product ID if you want to connect the memberhip with a product.

order_id

The order ID if you want to connect the membership with an order.

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 "Add user membership" action within our WooCommerce Memberships integrations. Down below you will find various examples with our other integrations.
When the cache was cleared via The WP Rocket Logo for our WP Webhooks integration WP Rocket, add a user membership via The WooCommerce Memberships Logo for our WP Webhooks integration WooCommerce Memberships.
When a plugin was activated via The WordPress Logo for our integration WordPress, add a user membership via The WooCommerce Memberships Logo for our WP Webhooks integration WooCommerce Memberships.
When the page cache was cleared via The WP-Optimize Logo for our WP Webhooks integration WP-Optimize, add a user membership via The WooCommerce Memberships Logo for our WP Webhooks integration WooCommerce Memberships.
When an entry was approved via The GravityKit Logo for our WP Webhooks integration GravityKit, add a user membership via The WooCommerce Memberships Logo for our WP Webhooks integration WooCommerce Memberships.
When a product was created via The Woocommerce Logo for our integration WooCommerce, add a user membership via The WooCommerce Memberships Logo for our WP Webhooks integration WooCommerce Memberships.
When a comment was created via The WordPress Logo for our integration WordPress, add a user membership via The WooCommerce Memberships Logo for our WP Webhooks integration WooCommerce Memberships.
When an ACF post field was updated via The Advanced Custom Fields Logo for our WP Webhooks integration Advanced Custom Fields, add a user membership via The WooCommerce Memberships Logo for our WP Webhooks integration WooCommerce Memberships.
When a ticket was closed via The Fluent Support Logo for our WP Webhooks integration Fluent Support, add a user membership via The WooCommerce Memberships Logo for our WP Webhooks integration WooCommerce Memberships.
When the page cache was cleared via The Cache Enabler Logo for our WP Webhooks integration Cache Enabler, add a user membership via The WooCommerce Memberships Logo for our WP Webhooks integration WooCommerce Memberships.
When a user logged in via The WP User Manager Logo for our WP Webhooks integration WP User Manager, add a user membership via The WooCommerce Memberships Logo for our WP Webhooks integration WooCommerce Memberships.
When a ticket was created via The Fluent Support Logo for our WP Webhooks integration Fluent Support, add a user membership via The WooCommerce Memberships Logo for our WP Webhooks integration WooCommerce Memberships.
When a tag was added to a contact via The Groundhogg Logo for our WP Webhooks integration Groundhogg, add a user membership via The WooCommerce Memberships Logo for our WP Webhooks integration WooCommerce Memberships.
When a quiz was completed via The Tutor LMS Logo for our WP Webhooks integration Tutor LMS, add a user membership via The WooCommerce Memberships Logo for our WP Webhooks integration WooCommerce Memberships.
When an order was created via The Woocommerce Logo for our integration WooCommerce, add a user membership via The WooCommerce Memberships Logo for our WP Webhooks integration WooCommerce Memberships.
When a customer was deleted via The Jetpack CRM Logo for our WP Webhooks integration Jetpack CRM, add a user membership via The WooCommerce Memberships Logo for our WP Webhooks integration WooCommerce Memberships.
When a cover photo was removed via The WP User Manager Logo for our WP Webhooks integration WP User Manager, add a user membership via The WooCommerce Memberships Logo for our WP Webhooks integration WooCommerce Memberships.
When a IFTTT webhook request was received via The IFTTT Logo for our WP Webhooks integration IFTTT, add a user membership via The WooCommerce Memberships Logo for our WP Webhooks integration WooCommerce Memberships.
When a free membership was cancelled via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro, add a user membership via The WooCommerce Memberships Logo for our WP Webhooks integration WooCommerce Memberships.
When a profile photo was updated via The WP User Manager Logo for our WP Webhooks integration WP User Manager, add a user membership via The WooCommerce Memberships Logo for our WP Webhooks integration WooCommerce Memberships.
When an entry was rejected via The GravityKit Logo for our WP Webhooks integration GravityKit, add a user membership via The WooCommerce Memberships Logo for our WP Webhooks integration WooCommerce Memberships.
When a user password was changed via The WP User Manager Logo for our WP Webhooks integration WP User Manager, add a user membership via The WooCommerce Memberships Logo for our WP Webhooks integration WooCommerce Memberships.

More available WooCommerce Memberships endpoints

Discover more of the available endpoints used for the WooCommerce Memberships 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.