Add addition Place Order description in block

This commit is contained in:
Alex P 2023-11-29 17:01:55 +02:00
parent 9d933b2b73
commit de1ab5b7bf
No known key found for this signature in database
GPG key ID: 54487A734A204D71
4 changed files with 57 additions and 28 deletions

View file

@ -1183,6 +1183,15 @@ return array(
__( 'Proceed to PayPal', 'woocommerce-paypal-payments' )
);
},
'wcgateway.place-order-button-description' => function ( ContainerInterface $container ) : string {
/**
* The text for additional description, when the "Place order" button mode is enabled.
*/
return apply_filters(
'woocommerce_paypal_payments_place_order_button_description',
__( 'Clicking "Proceed to PayPal", will redirect you to PayPal to complete your purchase.', 'woocommerce-paypal-payments' )
);
},
'wcgateway.helper.vaulting-scope' => static function ( ContainerInterface $container ): bool {
try {