froger-me / wp-remote-users-sync

Synchronise users across WordPress websites
GNU General Public License v3.0
72 stars 33 forks source link

Paid Membership Pro integration #16

Closed giacozama closed 3 years ago

giacozama commented 3 years ago

Paid Membership Pro doesn't save users' membership level in wp_usermeta table so its metadata is not available for syncronization. Would it be possible to integrate pmpro tables? or there could be a work around? Best regards

froger-me commented 3 years ago

Hi @giacozama !

The way to do so involves 2 tasks:

  1. adding a filter to WPRUS core when sending data (to manipulate what data is sent when a User Action is performed, in our case "update")
  2. adding integration code specific to Paid Membership Pro (using the new filter, checking the current User Action is "update", extract & add the data to transfer, and hook into the wprus_before_handle_action_notification action to perform the sync with received data)

The first task would be beneficial to all developers wanting to integrate WPRUS, so I will include it when I push the next version anyway. The second task falls under the "INTEGRATIONS" section as described on the plugin description page and would require a fee (with downpayment). Feel free to send me an email at alex@froger.me with the Paid Membership Pro archive in attachment so that I can study the code first and send you a budget estimate.

froger-me commented 3 years ago

No activity neither here nor by email for more than a week - closing.