mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Run module only if elegible
This commit is contained in:
parent
58781e5ada
commit
50aec0b1b3
3 changed files with 102 additions and 2 deletions
|
@ -32,5 +32,9 @@ class SavePaymentMethodsModule implements ModuleInterface {
|
|||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function run( ContainerInterface $c ): void {}
|
||||
public function run( ContainerInterface $c ): void {
|
||||
if ( ! $c->get( 'save-payment-methods.eligible' ) ) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue