is_checkout_pay_page()WC 1.0

Is_checkout_pay - Returns true when viewing the checkout's pay page.

No Hooks.

Return

true|false.

Usage

is_checkout_pay_page();

Examples

0

#1 Check the order payment page

if ( is_checkout_pay_page() ) {
	// order payment page
}

is_checkout_pay_page() code WC 8.9.0

function is_checkout_pay_page() {
	global $wp;

	return is_checkout() && ! empty( $wp->query_vars['order-pay'] );
}