Title: Membership Change Function
Last modified: August 21, 2016

---

# Membership Change Function

 *  [alex05](https://wordpress.org/support/users/alex05/)
 * (@alex05)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/membership-change-function/)
 * Hello,
 * Let me start by saying thank you for the plugin i really like it. I’m currently
   modifying the plugin to fit my needs. Can you tell me where i can find the function
   that triggers the membership update? I need to update a custom user meta field
   at the same time when the membership updates, if you could point me to where 
   the function is, i should be able to trigger the update user meta function when
   the membership updates.
 * Thank you so much.
 * [http://wordpress.org/plugins/paid-memberships-pro/](http://wordpress.org/plugins/paid-memberships-pro/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Slocum Studio](https://wordpress.org/support/users/slocumstudio/)
 * (@slocumstudio)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/membership-change-function/#post-4100663)
 * Hi Alex,
 * Thank you for the kind words. This function/action may help you: [https://github.com/strangerstudios/paid-memberships-pro/blob/master/includes/init.php#L193](https://github.com/strangerstudios/paid-memberships-pro/blob/master/includes/init.php#L193)
 * Thanks
 *  Plugin Author [Jason Coleman](https://wordpress.org/support/users/strangerstudios/)
 * (@strangerstudios)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/membership-change-function/#post-4100684)
 * The filter you will be looking for is pmpro_after_change_membership_level. You
   can see it in action here [https://github.com/strangerstudios/paid-memberships-pro/blob/dev/includes/functions.php#L606](https://github.com/strangerstudios/paid-memberships-pro/blob/dev/includes/functions.php#L606)
 *  [Slocum Studio](https://wordpress.org/support/users/slocumstudio/)
 * (@slocumstudio)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/membership-change-function/#post-4100741)
 * Hi Alex,
 * Do you have any updates for us as to whether or not you were able to get this
   to work?
 * Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Membership Change Function’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/paid-memberships-pro_f1dacb.svg)
 * [Paid Memberships Pro - Content Restriction, User Registration, & Paid Subscriptions](https://wordpress.org/plugins/paid-memberships-pro/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/paid-memberships-pro/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/paid-memberships-pro/)
 * [Active Topics](https://wordpress.org/support/plugin/paid-memberships-pro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/paid-memberships-pro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/paid-memberships-pro/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Slocum Studio](https://wordpress.org/support/users/slocumstudio/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/membership-change-function/#post-4100741)
 * Status: not resolved