is_account_page()WC 1.0

Is_account_page - Returns true when viewing an account page.

Hooks from the function

Return

true|false.

Usage

is_account_page();

is_account_page() code WC 9.4.2

function is_account_page() {
	$page_id = wc_get_page_id( 'myaccount' );

	return ( $page_id && is_page( $page_id ) ) || wc_post_content_has_shortcode( 'woocommerce_my_account' ) || apply_filters( 'woocommerce_is_account_page', false );
}