WordPress at Your Fingertips

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();

Code of is_checkout_pay_page() WC 5.8.0

function is_checkout_pay_page() {
	global $wp;

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

WC Conditional Tags

No comments
    Log In