is_checkout_pay_page()
Is_checkout_pay - Returns true when viewing the checkout's pay page.
Uses: is_checkout()
No Hooks.
Return
true|false
.
Usage
is_checkout_pay_page();
Examples
#1 Check the order payment page
if ( is_checkout_pay_page() ) { // order payment page }
is_checkout_pay_page() is checkout pay page code WC 9.6.0
function is_checkout_pay_page() { global $wp; return is_checkout() && ! empty( $wp->query_vars['order-pay'] ); }