Is checkout pay page function

This commit is contained in:
Mike Jolley 2013-06-17 12:21:19 +01:00
parent 0b300a1548
commit d3de355cf5
1 changed files with 15 additions and 0 deletions

View File

@ -585,6 +585,21 @@ if ( ! function_exists( 'is_checkout' ) ) {
} }
} }
if ( ! function_exists( 'is_checkout_pay_page' ) ) {
/**
* is_checkout_pay - Returns true when viewing the checkout's pay page.
*
* @access public
* @return bool
*/
function is_checkout_pay_page() {
global $wp;
return is_checkout() && ! empty( $wp->query_vars['order-pay'] ) ? true : false;
}
}
if ( ! function_exists( 'is_account_page' ) ) { if ( ! function_exists( 'is_account_page' ) ) {
/** /**