my account page woocommerce change default tab
/**
* Edit my account menu order
*/
function my_account_menu_order() {
$menuOrder = array(
'orders' => __( 'Your Orders', 'woocommerce' ),
'downloads' => __( 'Download', 'woocommerce' ),
'edit-address' => __( 'Addresses', 'woocommerce' ),
'edit-account' => __( 'Account Details', 'woocommerce' ),
'customer-logout' => __( 'Logout', 'woocommerce' ),
'dashboard' => __( 'Dashboard', 'woocommerce' )
);
return $menuOrder;
}
add_filter ( 'woocommerce_account_menu_items', 'my_account_menu_order' );