is_edit_account_page()

Check for edit account page.


Description Description

Returns true when viewing the edit account page.


Return Return

(bool)


Top ↑

Source Source

File: includes/wc-conditional-functions.php

202
203
204
205
206
207
208
function is_edit_account_page() {
    global $wp;
 
    $page_id = wc_get_page_id( 'myaccount' );
 
    return ( $page_id && is_page( $page_id ) && isset( $wp->query_vars['edit-account'] ) );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.5.1 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.