woocommerce_pay_order_button_text
Allows the text of the submit button on the Pay for Order page to be changed.
Использование
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(строка)
- The text of the button.
Список изменений
С версии 3.0.2 | Введена. |
Где вызывается хук
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' ) );