Skip to main content
Commonmark migration
Source Link

##Customize the order of the administration menu

Customize the order of the administration menu

Tested on: WordPress 3.0.1

This code will allow you to reorganize the order of elements in the administration menu. All that you need to do is click on an existing link in the administration menu and copy everything before the /wp-admin/ URL. The order below represents the order the new administration menu will have.

// CUSTOMIZE ADMIN MENU ORDER function custom_menu_order($menu_ord) { if (!$menu_ord) return true; return array( 'index.php', // This represents the dashboard link 'edit.php?post_type=events', // This is a custom post type menu 'edit.php?post_type=news', 'edit.php?post_type=articles', 'edit.php?post_type=faqs', 'edit.php?post_type=mentors', 'edit.php?post_type=testimonials', 'edit.php?post_type=services', 'edit.php?post_type=page', // This is the default page menu 'edit.php', // This is the default POST admin menu ); } add_filter('custom_menu_order', 'custom_menu_order'); add_filter('menu_order', 'custom_menu_order'); 

##Customize the order of the administration menu

Tested on: WordPress 3.0.1

This code will allow you to reorganize the order of elements in the administration menu. All that you need to do is click on an existing link in the administration menu and copy everything before the /wp-admin/ URL. The order below represents the order the new administration menu will have.

// CUSTOMIZE ADMIN MENU ORDER function custom_menu_order($menu_ord) { if (!$menu_ord) return true; return array( 'index.php', // This represents the dashboard link 'edit.php?post_type=events', // This is a custom post type menu 'edit.php?post_type=news', 'edit.php?post_type=articles', 'edit.php?post_type=faqs', 'edit.php?post_type=mentors', 'edit.php?post_type=testimonials', 'edit.php?post_type=services', 'edit.php?post_type=page', // This is the default page menu 'edit.php', // This is the default POST admin menu ); } add_filter('custom_menu_order', 'custom_menu_order'); add_filter('menu_order', 'custom_menu_order'); 

Customize the order of the administration menu

Tested on: WordPress 3.0.1

This code will allow you to reorganize the order of elements in the administration menu. All that you need to do is click on an existing link in the administration menu and copy everything before the /wp-admin/ URL. The order below represents the order the new administration menu will have.

// CUSTOMIZE ADMIN MENU ORDER function custom_menu_order($menu_ord) { if (!$menu_ord) return true; return array( 'index.php', // This represents the dashboard link 'edit.php?post_type=events', // This is a custom post type menu 'edit.php?post_type=news', 'edit.php?post_type=articles', 'edit.php?post_type=faqs', 'edit.php?post_type=mentors', 'edit.php?post_type=testimonials', 'edit.php?post_type=services', 'edit.php?post_type=page', // This is the default page menu 'edit.php', // This is the default POST admin menu ); } add_filter('custom_menu_order', 'custom_menu_order'); add_filter('menu_order', 'custom_menu_order'); 
Copy edited (e.g. ref. <https://en.wikipedia.org/wiki/WordPress>). Expanded. Made compliant with the Jon Skeet Decree - <https://twitter.com/PeterMortensen/status/976400000942034944>.
Source Link

##Customize the order of the adminadministration menu

testedTested on: WordpressWordPress 3.0.1

This code will allow you to reorganize the order of elements in the adminadministration menu. All that you need to do is click on an existing link in the adminadministration menu and copy everything before the /wp-admin/ URL. The order below represents the order the new adminadministration menu will have.

// CUSTOMIZE ADMIN MENU ORDER  function custom_menu_order($menu_ord) {   if (!$menu_ord) return true;   return array(true;   return array(  'index.php', // thisThis represents the dashboard link   'edit.php?post_type=events', // thisThis is a custom post type menu   'edit.php?post_type=news',    'edit.php?post_type=articles',    'edit.php?post_type=faqs',    'edit.php?post_type=mentors',   'edit.php?post_type=testimonials',   'edit.php?post_type=services',   'edit.php?post_type=page', // thisThis is the default page menu   'edit.php', // thisThis is the default POST admin menu    );  }  add_filter('custom_menu_order', 'custom_menu_order');  add_filter('menu_order', 'custom_menu_order'); 

##Customize the order of the admin menu

tested on: Wordpress 3.0.1

This code will allow you to reorganize the order of elements in the admin menu. All that you need to do is click on an existing link in the admin menu and copy everything before the /wp-admin/ URL. The order below represents the order the new admin menu will have.

// CUSTOMIZE ADMIN MENU ORDER  function custom_menu_order($menu_ord) {   if (!$menu_ord) return true; return array( 'index.php', // this represents the dashboard link   'edit.php?post_type=events', // this is a custom post type menu   'edit.php?post_type=news',    'edit.php?post_type=articles',    'edit.php?post_type=faqs',    'edit.php?post_type=mentors',   'edit.php?post_type=testimonials',   'edit.php?post_type=services',   'edit.php?post_type=page', // this is the default page menu   'edit.php', // this is the default POST admin menu    );  }  add_filter('custom_menu_order', 'custom_menu_order');  add_filter('menu_order', 'custom_menu_order'); 

##Customize the order of the administration menu

Tested on: WordPress 3.0.1

This code will allow you to reorganize the order of elements in the administration menu. All that you need to do is click on an existing link in the administration menu and copy everything before the /wp-admin/ URL. The order below represents the order the new administration menu will have.

// CUSTOMIZE ADMIN MENU ORDER function custom_menu_order($menu_ord) { if (!$menu_ord)   return true;   return array(  'index.php', // This represents the dashboard link 'edit.php?post_type=events', // This is a custom post type menu 'edit.php?post_type=news', 'edit.php?post_type=articles', 'edit.php?post_type=faqs', 'edit.php?post_type=mentors', 'edit.php?post_type=testimonials', 'edit.php?post_type=services', 'edit.php?post_type=page', // This is the default page menu 'edit.php', // This is the default POST admin menu ); } add_filter('custom_menu_order', 'custom_menu_order'); add_filter('menu_order', 'custom_menu_order'); 
Used a 2nd level heading for first line to be consistent with other entries.
Source Link
MikeSchinkel
  • 37.6k
  • 14
  • 118
  • 132

Customize the order of the admin menu ##Customize the order of the admin menu

tested on: Wordpress 3.0.1

This code will allow you to reorganize the order of elements in the admin menu. All that you need to do is click on an existing link in the admin menu and copy everything before the /wp-admin/ URL. The order below represents the order the new admin menu will have.

// CUSTOMIZE ADMIN MENU ORDER function custom_menu_order($menu_ord) { if (!$menu_ord) return true; return array( 'index.php', // this represents the dashboard link 'edit.php?post_type=events', // this is a custom post type menu 'edit.php?post_type=news', 'edit.php?post_type=articles', 'edit.php?post_type=faqs', 'edit.php?post_type=mentors', 'edit.php?post_type=testimonials', 'edit.php?post_type=services', 'edit.php?post_type=page', // this is the default page menu 'edit.php', // this is the default POST admin menu ); } add_filter('custom_menu_order', 'custom_menu_order'); add_filter('menu_order', 'custom_menu_order'); 

Customize the order of the admin menu

tested on: Wordpress 3.0.1

This code will allow you to reorganize the order of elements in the admin menu. All that you need to do is click on an existing link in the admin menu and copy everything before the /wp-admin/ URL. The order below represents the order the new admin menu will have.

// CUSTOMIZE ADMIN MENU ORDER function custom_menu_order($menu_ord) { if (!$menu_ord) return true; return array( 'index.php', // this represents the dashboard link 'edit.php?post_type=events', // this is a custom post type menu 'edit.php?post_type=news', 'edit.php?post_type=articles', 'edit.php?post_type=faqs', 'edit.php?post_type=mentors', 'edit.php?post_type=testimonials', 'edit.php?post_type=services', 'edit.php?post_type=page', // this is the default page menu 'edit.php', // this is the default POST admin menu ); } add_filter('custom_menu_order', 'custom_menu_order'); add_filter('menu_order', 'custom_menu_order'); 

##Customize the order of the admin menu

tested on: Wordpress 3.0.1

This code will allow you to reorganize the order of elements in the admin menu. All that you need to do is click on an existing link in the admin menu and copy everything before the /wp-admin/ URL. The order below represents the order the new admin menu will have.

// CUSTOMIZE ADMIN MENU ORDER function custom_menu_order($menu_ord) { if (!$menu_ord) return true; return array( 'index.php', // this represents the dashboard link 'edit.php?post_type=events', // this is a custom post type menu 'edit.php?post_type=news', 'edit.php?post_type=articles', 'edit.php?post_type=faqs', 'edit.php?post_type=mentors', 'edit.php?post_type=testimonials', 'edit.php?post_type=services', 'edit.php?post_type=page', // this is the default page menu 'edit.php', // this is the default POST admin menu ); } add_filter('custom_menu_order', 'custom_menu_order'); add_filter('menu_order', 'custom_menu_order'); 
added 1 characters in body
Source Link
John P Bloch
  • 11.1k
  • 38
  • 46
Loading
Post Made Community Wiki by EAMann
Source Link
NetConstructor.com
  • 4.4k
  • 18
  • 72
  • 83
Loading