I am trying to synchronize a custom post type with membership pro so that my client can use their site like a CRM. They want to be able to view and manage all of their member data via the custom post types as opposed to within each individual plugin.
I have already written a filter for the custom post type so that the admin can change the membership level via the post page as opposed to within membership 2. However, I need to write some code so that the value in the custom post type will change when changes are made via the membership plugin.
For example, when a subscription expires and when a subscription is renewed, i would like to write some code to update the meta value for the custom post type.
Can you tell me where I can find this trigger/hook?