Moving the menu items in WP Admin

Posted on 29th January, 2015 321 Comments

This was a snippet I grabbed off of tutsplus! I’ve found this super useful when I’ve been creating customer themes to give a menu item a higher priority in regards to it’s use in the theme.

functions.php

/* REORDER MENU ITEMS
 * http://code.tutsplus.com/articles/customizing-your-wordpress-admin--wp-24941
 *************************************************************/
add_filter('custom_menu_order', 'custom_menu_order'); // Activate custom_menu_order
add_filter('menu_order', 'custom_menu_order');
function custom_menu_order($menu_ord) {
	if (!$menu_ord) return true;
	 
	return array(
		'index.php', // Dashboard
		'separator1', // First separator
		'edit.php?post_type=background_slider', // Custom post types moved using post_type=cpt name
		'edit.php', // Posts
		'edit.php?post_type=page', // Pages ls
		'upload.php', // Media
		'link-manager.php', // Links
		'edit-comments.php', // Comments
		'separator2', // Second separator
		'themes.php', // Appearance
		'plugins.php', // Plugins
		'users.php', // Users
		'tools.php', // Tools
		'options-general.php', // Settings
		'separator-last', // Last separator
	);
}

Comments

To preserve code added to a comment you can wrap your code in short tags
by using [square brackets]:

  1. PHP use - [php] <?php code here ?> [/php]
  2. CSS use - [css] #code-here {} [/css]
  3. HTML use - [html] <div> code here </div> [/html]
  4. JS use - [js] $(".codeHere") [/js]

RobertBAR

30th, Sep, 20

top erection pills [url=”http://erectiledysfunctionpillscvs.com/#”]erectile dysfunction pills[/url]

KennethPioxy

15th, Oct, 20

Drug prescribing information. Drug Class. [url=https://orderprozaconline.top/]https://orderprozaconline.top/[/url] Some what you want to know about drug. Read information here.

JosephBuh

15th, Oct, 20

Medication prescribing information. Long-Term Effects. buy modafinil Actual trends of medication. Get now.

KennethPioxy

16th, Oct, 20

Drug information for patients. Short-Term Effects. [url=https://zoloft2020.life/]https://zoloft2020.life/[/url] Best trends of drug. Read information here.

MaXmwr

17th, Oct, 20

Сервис помощи студентам 24 АВТОР (24 AUTHOR) – официальный сайт.
Автор24
Работаем с 2012 года. Гарантии, бесплатные доработки, антиплагиат. Заказать диплом (дипломную работу), курсовую, магистерскую или любую другую студенческую работу можно здесь.

JosephBuh

18th, Oct, 20

Medicines information for patients. What side effects can this medication cause? buy lamivudin All news about medication. Get here.

RobertBAR

19th, Oct, 20

erectile boosting medication [url=http://erectiledysfunctionpillscvs.com/#]erection pills online[/url] can erectile dysfunction be temporary

KennethPioxy

19th, Oct, 20

Medicines information leaflet. Generic Name. [url=https://lexapro2020.live/]https://lexapro2020.live/[/url] All information about medication. Read information now.

JamesVen

21st, Oct, 20

online uk Misappropriate queens that regularly insincere to searching getter [url=https://ciamedusa.com/]tadalafil[/url] Immunosuppressant, Regimen Command of Routine, Need Attentive Comparisons.

JamesVen

21st, Oct, 20

generic cialis online pharmacy stretch consume and directing thoracic surgeries. [url=https://ciamedusa.com/]cialis pills[/url] Msksbz hqupsr

Danny Feinblatt

04th, Nov, 20

obviously like your website but you need to check the spelling on several of your posts. Many of them are rife with spelling problems and I find it very bothersome to tell the truth nevertheless I’ll surely come back again.

Kennethedugs

05th, Nov, 20

is there a generic for viagra cheap ed pills canadian pharmacy generic viagra
is it illegal to buy prescription drugs online

Ginny Sicilia

06th, Nov, 20

I’ll immediately clutch your rss as I can not in finding your e-mail subscription hyperlink or e-newsletter service. Do you’ve any? Please let me recognise in order that I could subscribe. Thanks.

Milly Aderholdt

09th, Nov, 20

As I website possessor I believe the content matter here is rattling wonderful , appreciate it for your efforts. You should keep it up forever! Best of luck.

air conditioner repair

13th, Nov, 20

wonderful points altogether, you simply gained a brand new reader. What would you suggest about your post that you made a few days ago? Any positive?

buy hacklink

18th, Nov, 20

Likes on Instagram can improve your brand’s engagement numbers. When you buy Instagram likes you get more engagement on your profile which means more reputation.

Michelina Nuno

21st, Nov, 20

F*ckin’ remarkable issues here. I’m very glad to look your post. Thank you so much and i’m looking ahead to contact you. Will you please drop me a e-mail?

More Help electricians in san diego

05th, Dec, 20

Howdy! I know this is kinda off topic but I was wondering if you knew where I could locate a captcha plugin for my comment form? I’m using the same blog platform as yours and I’m having difficulty finding one? Thanks a lot!

hey

22nd, Dec, 20

Taxi moto line
128 Rue la Boétie
75008 Paris
+33 6 51 612 712  

Taxi moto paris

Hello there! This is my first visit to your blog!
We are a group of volunteers and starting a new project in a community in the same niche.
Your blog provided us valuable information to work
on. You have done a marvellous job!

vreyrolinomit

23rd, Dec, 20

The next time I learn a weblog, I hope that it doesnt disappoint me as much as this one. I imply, I do know it was my option to read, but I really thought youd have something fascinating to say. All I hear is a bunch of whining about something that you possibly can repair in the event you werent too busy in search of attention.

pharmacious

31st, Dec, 20

premature babies wikipedia
[url=https://chloroquineorigin.com/]chloroquin[/url]
erectile aid device
[url=https://erectiledysfunctionsxag.com/]is erectile dysfunction reversible[/url]
malaria drug hydroxychloroquine
[url=https://hydroxychloroquinex.com/]hydroxychloroquine oral[/url]
do erectile dysfunction pills really work
[url=https://plaquenilx.com/]what does plaquenil do[/url]
eli 20 tablets
[url=https://tadalisxs.com/]tadalafil tablets[/url]
generic zithromax 500mg
[url=https://zithromaxes.com/]zithromax over the counter[/url]

Nickolas Terstage

01st, Jan, 21

I post them, they get 1 or 2 views, and then no more. I would like my content to do more than just give me a few views…how do I get them on the search engines or something like that? Will no one ever go to my blog just because I don’t post every day?.

Donnell Lysne

03rd, Jan, 21

I am thinking about building a local news website that will, for the most part, be a collection of local news stories published by newspapers and other sources. Is it legal to do this? I would, of course, give all credit to the authors. I’m just wondering what the legality of this would be? Thanks for the help!.

Andres Rowman

03rd, Jan, 21

I’m really enjoying the design and layout of your blog. It’s a very easy on the eyes which makes it much more pleasant for me to come here and visit more often. Did you hire out a developer to create your theme? Exceptional work!|

JakGO

04th, Jan, 21

Займы через бота Телеграм – робот моментально подберет: Займ под 0% или минимальный процент. Только официальные МФО. Попробуйте – это удобно и быстро. Деньги на карту через 15 минут.
Работает в России, Украине, Казахстане. Если у вас нет мессенджера, скачайте и установите приложение Telegram. Подключитесь к боту перейдя по ссылке

онлайн займ на карту сбербанка

vreyro linomit

05th, Jan, 21

Hey, you used to write great, but the last several posts have been kinda boringK I miss your tremendous writings. Past few posts are just a bit out of track! come on!

Marvin Ing

06th, Jan, 21

Thanks for your whole efforts on this web page. My daughter loves managing investigation and it is simple to grasp why. My spouse and i notice all concerning the lively tactic you give valuable tips and tricks via this blog and welcome contribution from some other people on the article plus our simple princess is starting to learn a whole lot. Take pleasure in the rest of the year. You are carrying out a wonderful job.

Weston Berbereia

06th, Jan, 21

I have been told to go and open a WordPress blog account to make web mini sites (web presence) and I am wanting to know if you have better ideas or simply more ideas? Advise for WordPress would be great as well!.

Frankie Alverio

08th, Jan, 21

I have seen a lot of blogs in blogspot. What purpose do they serve? Is it possible to make money through blogs. If yes how?.

vreyro linomit

08th, Jan, 21

I am often to blogging and i really appreciate your content. The article has really peaks my interest. I am going to bookmark your site and keep checking for new information.

wings io

12th, Jan, 21

Be prudent to withal not this ride so as to desist detection.Cash is rare in the no.

few hours of GTA 5, and this diplomatist describes How to Form Money in GTA
5, including dead virtuous structure, and untwisted up GTA 5 cheats.

Dimailrawpresia

14th, Jan, 21

Всем привет!

[b]Мгновенные займы стали ещё быстрее – просто отправьте заявку через мессенджер Telegram[/b]

[url=https://ttlgr.ru/prozaimbot][img]https://i.postimg.cc/YSB9Tvfc/image.png[/img][/url]

[b]- Микрозаймы под 0%
– [url=https://admouse.center/zaymy-na-kartu/]Займы на банковскую карту[/url]
– На любой электронный кошелёк
– Наличными или счёт
– Круглосуточно
– Более 100 предложений от официальных МФО и Банков
– Одобрение до 100% если подача заявки через бот
– Технология взаимодействия с ботом позволяет в разы быстрее обработать заявку
– Без отказов и проверок
– Мгновенное получение
– Работает в:
– России
– Украине
– Казахстане
– Бот найдет займ под любые Ваши нужды.
– Вы берете столько денег, сколько вам нужно!
– А также кредитные и дебетовые карты от банков партнёров[/b]

[u][b]- Подключайтесь https://ttlgr.ru/prozaimbot [/b][/u]

vreyrolinomit

15th, Jan, 21

Hello this is kind of of off topic but I was wondering if blogs use WYSIWYG editors or if you have to manually code with HTML. I’m starting a blog soon but have no coding know-how so I wanted to get guidance from someone with experience. Any help would be greatly appreciated!

Jamesstaro

19th, Jan, 21

fda warning list cialis tadalafil 20 mg gjioulvk which is better – cialis or viagra
does cialis make you bigger

windows loader genuine download

20th, Jan, 21

Oh my goodness! Awesome article dude! Many thanks, However I am encountering difficulties with your RSS. I don’t understand the reason why I can’t join it. Is there anyone else getting the same RSS issues? Anybody who knows the answer will you kindly respond? Thanx!!|

NmilUnobe

23rd, Jan, 21

viagra walmart viagra uk http viagra [url=http://xz-pharmacyonline.com/en/career-opportunities.html]i bought viagra online aus[/url] ’

vreyrolinomit

23rd, Jan, 21

Good post. I study one thing more challenging on completely different blogs everyday. It can all the time be stimulating to learn content from other writers and follow a bit something from their store. I’d choose to use some with the content on my weblog whether you don’t mind. Natually I’ll offer you a hyperlink in your web blog. Thanks for sharing.

Leave a Comment

To preserve code added to a comment you can wrap your code in short tags
by using [square brackets]:

  1. PHP use - [php] <?php code here ?> [/php]
  2. CSS use - [css] #code-here {} [/css]
  3. HTML use - [html] <div> code here </div> [/html]
  4. JS use - [js] $(".codeHere") [/js]