mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
unregister webhooks on plugin deactivation
This commit is contained in:
parent
7dcc979461
commit
181b15f5b8
1 changed files with 7 additions and 0 deletions
|
@ -44,5 +44,12 @@ class WebhookModule implements ModuleInterface
|
|||
}
|
||||
);
|
||||
|
||||
add_action(
|
||||
'woocommerce-paypal-commerce-gateway.deactivate',
|
||||
function() use ($container) {
|
||||
$registrar = $container->get('webhook.registrar');
|
||||
$registrar->unregister();
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue