woocommerce_pay_order_button_text
Allows the text of the submit button on the Pay for Order page to be changed.
Usage
add_filter( 'woocommerce_pay_order_button_text', 'wp_kama_woocommerce_pay_order_button_text_filter' ); /** * Function for `woocommerce_pay_order_button_text` filter-hook. * * @param string $text The text of the button. * * @return string */ function wp_kama_woocommerce_pay_order_button_text_filter( $text ){ // filter... return $text; }
- $text(string)
- The text of the button.
Changelog
Since 3.0.2 | Introduced. |
Where the hook is called
woocommerce_pay_order_button_text
woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php 210
$order_button_text = apply_filters( 'woocommerce_pay_order_button_text', __( 'Pay for order', 'woocommerce' ) );