is_lost_password_page()WC 1.0

Is_lost_password_page - Returns true when viewing the lost password page.

No Hooks.

Return

true|false.

Usage

is_lost_password_page();

is_lost_password_page() code WC 9.0.1

function is_lost_password_page() {
	global $wp;

	$page_id = wc_get_page_id( 'myaccount' );

	return ( $page_id && is_page( $page_id ) && isset( $wp->query_vars['lost-password'] ) );
}