is_edit_account_page()
Check for edit account page. Returns true when viewing the edit account page.
No Hooks.
Return
true|false
.
Usage
is_edit_account_page();
Changelog
Since 2.5.1 | Introduced. |
is_edit_account_page() is edit account page code WC 9.6.1
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'] ) ); }