wp-cloud-deploy
wp-cloud-deploy copied to clipboard
WooCommerce | Redirect "Trash" Server Button to Cancel Subscription?
Hi,
This somewhat relates with https://trello.com/c/1UBdBWdt/166-add-wp-capabilities-to-control-whether-the-delete-server-link-can-be-shown-to-user
When I try to delete a server (bought with WooCommerce) using the "Trash" button (I guess it is mapped internally to post row actions), the system pops up a warning about a related Subscription (see screenshot below) and eventually allows the deletion.
Now that V5 introduces frontend admin panel, this Trash button can perhaps be redirected to Cancel Subscription under WooCommerce -> My Account Dashboard. It just makes things easier to follow purely from a customer's workflow perspective.
PS: I might also risk suggesting to disable the Trash button altogether (even on the backend) when a server is deployed as a result of a Woo subscription.
PS: File I am testing is the Beta versions of WPCD Core and Woo Addon
Kind regards,