mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Add addition Place Order description in block
This commit is contained in:
parent
9d933b2b73
commit
de1ab5b7bf
4 changed files with 57 additions and 28 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue