my account page woocommerce change default tab

Solutions on MaxInterview for my account page woocommerce change default tab by the best coders in the world

showing results for - "my account page woocommerce change default tab"
Alonso
26 Nov 2016
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' );