woocommerce_pay_order_button_html
Использование
add_filter( 'woocommerce_pay_order_button_html', 'wp_kama_woocommerce_pay_order_button_html_filter' ); /** * Function for `woocommerce_pay_order_button_html` filter-hook. * * @param $html * * @return */ function wp_kama_woocommerce_pay_order_button_html_filter( $html ){ // filter... return $html; }
- $html
- -
Где вызывается хук
В файле: /templates/checkout/form-pay.php
woocommerce_pay_order_button_html
woocommerce/templates/checkout/form-pay.php 102
<?php echo apply_filters( 'woocommerce_pay_order_button_html', '<button type="submit" class="button alt' . esc_attr( wc_wp_theme_get_element_class_name( 'button' ) ? ' ' . wc_wp_theme_get_element_class_name( 'button' ) : '' ) . '" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '">' . esc_html( $order_button_text ) . '</button>' ); // @codingStandardsIgnoreLine ?>