Tagged Questions
1
vote
1answer
31 views
Change position of media in admin menu
Is it possible to set the position of an item in the admin menu? I'm trying to move the media link under my custom post types. I know that the media link is position 10. Is it possible to set it to ...
2
votes
1answer
218 views
Generate Advanced Custom Fields box in custom admin menu page
I have created an custom admin menu page called FCC Youtube with add_menu_page function
which has some custom fields I manually generated via HTML and PHP:
code ( just the part how I created this ...
4
votes
1answer
95 views
Remove a menu item created by a plugin
I'm trying to remove a menu item and tried several approaches, but have not had any luck. It was created from a FAQ plugin.
If I use this line:
remove_menu_page( 'edit.php?post_type=question' );
...
0
votes
1answer
39 views
Function Reference for custom link in Admin Menu Management Page
What is the function reference for the text within the URL field in the Admin Menu page?
I have a PHP function that is utilizing the_content function reference to look for specific file paths and ...
0
votes
2answers
74 views
Remove Menu Page Giving Error
I have a snippet of code I've written in the functions.php file which is simply to remove menu pages if the user cannot activate plugins. It works as intended; however it is showing a PHP error in ...
5
votes
1answer
409 views
Modify Admin Bar Link
Starting on line 474 of /wp-includes/admin-bar.php there is a function that is declared as the following:
function wp_admin_bar_new_content_menu( $wp_admin_bar )
What it does it generates the + New ...
1
vote
1answer
317 views
difference between add_object_page and add_menu_page
According to Codex, the add_object_page "essentially does the exact same thing as add_menu_page() in case you're wondering".
So.... what is the difference between those two functions?
0
votes
2answers
103 views
How to change a specific admin label
I'm trying to change on the backend from:
Appearance -> Header
To
Appearance -> Logo
But the Changing Admin Menu Labels answer didn't help so far.
Any new tip?
Thanks
5
votes
2answers
2k views
Passing arguments to a admin menu page callback?
Situation: I'm working on a plugin and I'm developing it as a class, everything worked fine until I run into this situation. I wanted to make things a bit cleaner and tried this..
class MyPlugin {
...
1
vote
3answers
1k views
Make sub menu items a main link in the admin menu using fuctions.php
I am trying to customize the admin area using the functions.php file to make things easier for my clients. One request I have got before and hope to be able to accomplish, is to move some of the sub ...
16
votes
3answers
14k views
Changing Admin Menu Labels
I have spent the last day using the functions.php file to fully customize WordPress for my client sites. I am amazed at how much I have been able to accomplish and how much easier it will make things ...
1
vote
2answers
264 views
Run functions only in the admin area?
I'd like this code to only run inside the admin area as it is resorting the items on the public side admin bar too.
/* Reorder Admin Menu to put "Pages" at the top */
function ...