Skip to content

Instantly share code, notes, and snippets.

@fervous
Created October 20, 2018 00:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fervous/cd3fd9246d3d82c6031abb586310012b to your computer and use it in GitHub Desktop.
Save fervous/cd3fd9246d3d82c6031abb586310012b to your computer and use it in GitHub Desktop.
change nav navigation menu order pro dashboard wc vendors
// Add this to your themes functions.php to change the order, rearrage the lines. First line is first item, last is last etc.
add_filter( 'wcv_dashboard_pages_nav', 'change_nav_order');
function change_nav_order( $pages ){
$new_nav_order = array();
$new_nav_order['product'] = $pages['product'];
$new_nav_order['dashboard_home'] = $pages['dashboard_home'];
$new_nav_order['order'] = $pages['order'];
$new_nav_order['rating'] = $pages['rating'];
$new_nav_order['shop_coupon'] = $pages['shop_coupon'];
$new_nav_order['settings'] = $pages['settings'];
$new_nav_order['view_store'] = $pages['view_store'];
return $new_nav_order;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment