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