unregister webhooks on plugin deactivation

This commit is contained in:
David Remer 2020-07-08 15:25:38 +03:00
parent 7dcc979461
commit 181b15f5b8

View file

@ -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();
}
);
}
}