mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Add block cart and block express checkout to default buttons locations.
This commit is contained in:
parent
a477770256
commit
e7e5f10f83
1 changed files with 3 additions and 1 deletions
|
@ -1372,7 +1372,9 @@ return array(
|
|||
);
|
||||
},
|
||||
'wcgateway.button.default-locations' => static function( ContainerInterface $container ): array {
|
||||
return array_keys( $container->get( 'wcgateway.settings.pay-later.messaging-locations' ) );
|
||||
$button_locations = $container->get( 'wcgateway.button.locations' );
|
||||
unset( $button_locations['mini-cart'] );
|
||||
return array_keys( $button_locations );
|
||||
},
|
||||
'wcgateway.settings.pay-later.button-locations' => static function( ContainerInterface $container ): array {
|
||||
$settings = $container->get( 'wcgateway.settings' );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue