mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
remove option from database on plugin deactivation
This commit is contained in:
parent
7536efbe3a
commit
c0c8e3f8cf
1 changed files with 6 additions and 0 deletions
|
@ -83,6 +83,12 @@ class WcGatewayModule implements ModuleInterface
|
||||||
},
|
},
|
||||||
9
|
9
|
||||||
);
|
);
|
||||||
|
add_action(
|
||||||
|
'woocommerce-paypal-commerce-gateway.deactivate',
|
||||||
|
function() use ($container) {
|
||||||
|
delete_option(Settings::KEY);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue