1 /**
2 * Edit my account menu order
3 */
4
5 function my_account_menu_order() {
6 $menuOrder = array(
7 'orders' => __( 'Your Orders', 'woocommerce' ),
8 'downloads' => __( 'Download', 'woocommerce' ),
9 'edit-address' => __( 'Addresses', 'woocommerce' ),
10 'edit-account' => __( 'Account Details', 'woocommerce' ),
11 'customer-logout' => __( 'Logout', 'woocommerce' ),
12 'dashboard' => __( 'Dashboard', 'woocommerce' )
13 );
14 return $menuOrder;
15 }
16 add_filter ( 'woocommerce_account_menu_items', 'my_account_menu_order' );