froger-me / wp-remote-users-sync

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

Add Support for Woocommerce Subscription when Active/Inactive status change. #10

Closed JLAcostaEC closed 4 years ago

JLAcostaEC commented 4 years ago

When changing the status of the user's subscription (Active Subscription - Inactive Subscription) the update request for the other site is not generated. (Swicht from Active to Inactive or vice versa)

All this process is done automatically by woocommerce Subscription. The update is only generated when updating a user manually.

Thanks for the help!

:D

froger-me commented 4 years ago

Hello @JLAcostaEC - are you talking about the WooCommerce Subscriptions plugin specifically?

If yes, subscription status is not part of the user information. It is part of the subscription order (WC_Subscription extends WC_Order) . The plugin synchronizes Users, not Orders (which are themselves Custom Post Types in the database).