Merge pull request #1769 from leewillis77/master

Implement is_order_received_page()
This commit is contained in:
Mike Jolley 2012-11-16 05:52:43 -08:00
commit 9191363986
1 changed files with 12 additions and 0 deletions

View File

@ -325,6 +325,18 @@ if ( ! function_exists( 'is_account_page' ) ) {
return ( is_page( woocommerce_get_page_id( 'myaccount' ) ) || is_page( woocommerce_get_page_id( 'edit_address' ) ) || is_page( woocommerce_get_page_id( 'view_order' ) ) || is_page( woocommerce_get_page_id( 'change_password' ) ) ) ? true : false;
}
}
if ( ! function_exists( 'is_order_received_page' ) ) {
/**
* is_order_received_page - Returns true when viewing the order received page.
*
* @access public
* @return bool
*/
function is_order_received_page() {
return ( is_page( woocommerce_get_page_id( 'thanks' ) ) ) ? true : false;
}
}
if ( ! function_exists( 'is_ajax' ) ) {
/**