Use woocommerce_subscription_status_updated for all subscription status updates

This commit is contained in:
Emili Castells Guasch 2024-09-20 15:25:49 +02:00
parent 6518ae0655
commit c056b33b3c
3 changed files with 10 additions and 23 deletions

View file

@ -148,7 +148,7 @@ class BillingSubscriptions {
*/
public function cancel( string $id ): void {
$data = array(
'reason' => 'Cancelled by customer',
'reason' => sprintf( 'Cancelled by %s.', is_admin() ? 'merchant' : 'customer' ),
);
$bearer = $this->bearer->bearer();