Skip to content

Commit

Permalink
Remove tenant on expire
Browse files Browse the repository at this point in the history
  • Loading branch information
abduvik committed Jul 3, 2022
1 parent 8f81c5c commit 5f51306
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file modified .DS_Store
Binary file not shown.
6 changes: 3 additions & 3 deletions src/Core/TenantsSubscriptionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ public function __construct()

add_action('wps_sfw_after_created_subscription', [$this, 'create_tenant_when_subscription_created'], 10, 2);

add_action('wps_sfw_subscription_cancel', [$this, 'remove_tenant_when_subscription_expired']);
// add_action('wps_sfw_expire_subscription_scheduler', [$this, 'remove_tenant_when_subscription_expired']);
// add_action('wps_sfw_subscription_cancel', [$this, 'remove_tenant_when_subscription_expired']);
add_action('wps_sfw_expire_subscription_scheduler', [$this, 'remove_tenant_when_subscription_expired']);
}

public function render_wpcs_checkout_fields($fields)
Expand Down Expand Up @@ -67,7 +67,7 @@ public function create_tenant_when_subscription_created($subscription_id, $order

$tenant = $tenant[0];

wp_mail( $order->get_billing_email(), 'Your website is being created', "
wp_mail($order->get_billing_email(), 'Your website is being created', "
<!doctype html>
<html lang='en'>
<body>
Expand Down

0 comments on commit 5f51306

Please sign in to comment.