remove option from database on plugin deactivation

This commit is contained in:
David Remer 2020-07-10 09:01:58 +03:00
parent 7536efbe3a
commit c0c8e3f8cf

View file

@ -83,6 +83,12 @@ class WcGatewayModule implements ModuleInterface
},
9
);
add_action(
'woocommerce-paypal-commerce-gateway.deactivate',
function() use ($container) {
delete_option(Settings::KEY);
}
);
}