WishList Member WordPress Hooks

WishList Member supports a number of WordPress-style hooks.  You can modify the behavior of WishList Member to some extent by making use of the WordPress add_filter and add_action functions.

Registration Process

wishlistmember_registration_page (filter)

Applied to the WishList Member registration page

wishlistmember_after_registration_page (filter)

Applied to the page that redirects to the configured after registration page. Note that this is not a filter for the actual registration page. You can use this to add more steps to the WishList Member registration process.

wishlistmember_after_registration (action)

Called after the registration process is completed.

PayPal

wlmem_paypal_ipn_response (action)

Called after receiving a successful IPN from Paypal

Membership Levels

wishlistmember_remove_user_levels (action)

Called when a member is removed from one or more levels

Parameters:

  • $id – Member ID
  • $levels – Membership Levels

wishlistmember_add_user_levels (action)

Called when a member is added to one or more levels

Parameters:

  • $id – Member ID
  • $levels – Membership Levels

wishlistmember_unapprove_user_levels (action)

Called when a member is unapproved on one or more levels

Parameters:

  • $id – Member ID
  • $levels – Membership Levels

wishlistmember_approve_user_levels (action)

Called when a member is approved on one or more levels

Parameters:

  • $id – Member ID
  • $levels – Membership Levels

wishlistmember_unconfirm_user_levels (action)

Called when a member is unconfirmed on one or more levels

Parameters:

  • $id – Member ID
  • $levels – Membership Levels

wishlistmember_confirm_user_levels (action)

Called when a member is confirmed on one or more levels

Parameters:

  • $id – Member ID
  • $levels – Membership Levels

wishlistmember_cancel_user_levels (action)

Called when a member is cancelled on one or more levels

Parameters:

  • $id – Member ID
  • $levels – Membership Levels

wishlistmember_uncancel_user_levels (action)

Called when a member is uncancelled on one or more levels

Parameters:

  • $id – Member ID
  • $levels – Membership Levels

Shopping Cart Integration

wishlistmember_shoppingcart_register (action)

Called when a new member is signed-up via one of the shopping cart integrations. Information about the registration can be found in the $_POST variable.

wishlistmember_shoppingcart_reactivate (action)

Called when a shopping cart integration receives a “Activate” command such as when a recurring payment is received.

wishlistmember_shoppingcart_deactivate (action)

Called when a shopping cart integration receives a “Deactivate” command such as when a subscription is cancelled or a refund is made.

Content (Categories, Pages, Posts and Comments)

wishlistmember_add_categories_levels (action)

Called when a category is added to one or more levels

Parameters:

  • $id – Category ID
  • $levels – Membership Levels

wishlistmember_remove_categories_levels (action)

Called when a category is removed from one or more levels

Parameters:

  • $id – Category ID
  • $levels – Membership Levels

wishlistmember_add_pages_levels (action)

Called when a page is added to one or more levels

Parameters:

  • $id – Page ID
  • $levels – Membership Levels

wishlistmember_remove_pages_levels (action)

Called when a page is removed from one or more levels

Parameters:

  • $id – Page ID
  • $levels – Membership Levels

wishlistmember_add_posts_levels (action)

Called when a post is added to one or more levels

Parameters:

  • $id – Post ID
  • $levels – Membership Levels

wishlistmember_remove_posts_levels (action)

Called when a post is removed from one or more levels

Parameters:

  • $id – Post ID
  • $levels – Membership Levels

wishlistmember_add_comments_levels (action)

Called when a post/page comments is added to one or more levels

Parameters:

  • $id – Post/Page ID
  • $levels – Membership Levels

wishlistmember_remove_comments_levels (action)

Called when a post/page comments is removed from one or more levels

Parameters:

  • $id – Post/Page ID
  • $levels – Membership Levels
Comments are closed.