Answers for "my account page woocommerce change default tab"

PHP
0

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' );
Posted by: Guest on February-10-2021

Code answers related to "my account page woocommerce change default tab"

Browse Popular Code Answers by Language