mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
Remove old settings
This commit is contained in:
parent
f9e374e540
commit
9efc65cc93
3 changed files with 70 additions and 518 deletions
|
@ -99,5 +99,13 @@ return array(
|
|||
);
|
||||
},
|
||||
|
||||
'wcgateway.settings.fields' => require __DIR__ . '/connection-tab-settings.php',
|
||||
'wcgateway.settings.fields' => function ( ContainerInterface $container, array $fields ): array {
|
||||
$get_connection_tab_fields = require __DIR__ . '/connection-tab-settings.php';
|
||||
$connection_tab_fields = $get_connection_tab_fields( $container, $fields ) ?? array();
|
||||
|
||||
$get_pay_later_tab_fields = require __DIR__ . '/pay-later-tab-settings.php';
|
||||
$pay_later_tab_fields = $get_pay_later_tab_fields( $container, $fields ) ?? array();
|
||||
|
||||
return array_merge( $connection_tab_fields, $pay_later_tab_fields );
|
||||
},
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue