get_account_pages();
global $wp_query;
foreach ( $pages as $page => $page_value ) {
foreach ( $pages as $unset_tab => $unset_tab_value ) {
unset( $wp_query->query_vars[ $unset_tab ] );
}
$wp_query->query_vars[ $page ] = $page_value;
$wrapper_class = $this->get_account_content_wrapper( [
'context' => 'editor',
'page' => $page,
] );
?>
>
has_custom_template() ) {
wc_get_template(
'myaccount/dashboard.php',
[
'current_user' => get_user_by( 'id', get_current_user_id() ),
]
);
} else {
$this->display_custom_template();
}
} else {
do_action( 'woocommerce_account_' . $page . '_endpoint', $page_value );
}
?>