changing the status of a member to cancelled in woocommerce

I’m trying to figure out a way to automatically change the user’s membership status to cancelled on woocommerce, been looking ofr a few days now to no avail :/.

ex:

I have a customer who owns 4 memberships and he cancels one of them, this gets logged on an external database which then sends the cancel through a webhook to my woocommerce site who then needs to grab that and change the status to canceled.

I have everything else setup correctly, but nowhere on the woocommerce docs have I found anything regarding changing a user’s membership status.

thanks!

Read more here: changing the status of a member to cancelled in woocommerce

Leave a Reply

Your email address will not be published. Required fields are marked *