Is account page tweak Closes #2050.
This commit is contained in:
parent
20a8c5f695
commit
da978d7431
|
@ -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' ) ) {
|
||||
|
|
Loading…
Reference in New Issue