Adding a docblock to the order button filter as well

This commit is contained in:
Radoslav Georgiev 2022-05-18 18:16:25 +03:00
parent f73cbb6671
commit 1c813ea3fb
1 changed files with 7 additions and 0 deletions

View File

@ -183,6 +183,13 @@ class WC_Shortcode_Checkout {
current( $available_gateways )->set_current();
}
/**
* Allows the text of the submit button on the Pay for Order page to be changed.
*
* @param string $text The text of the button.
*
* @since 3.0.2
*/
$order_button_text = apply_filters( 'woocommerce_pay_order_button_text', __( 'Pay for order', 'woocommerce' ) );
/**