Is account page tweak Closes #2050.

This commit is contained in:
Mike Jolley 2012-12-27 18:43:26 +00:00
parent 20a8c5f695
commit da978d7431
1 changed files with 1 additions and 1 deletions

View File

@ -388,7 +388,7 @@ if ( ! function_exists( 'is_account_page' ) ) {
* @return bool
*/
function 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' ) || is_page( woocommerce_get_page_id( 'lost_password' ) ) ) ) ? true : false;
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' ) ) || is_page( woocommerce_get_page_id( 'lost_password' ) ) || apply_filters( 'woocommerce_is_account_page', false ) ? true : false;
}
}
if ( ! function_exists( 'is_order_received_page' ) ) {