Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 385

Usually, plugin and theme authors need to provide access to a settings (options) screen so users can customize how the plugin or theme is used. The best way to present the user with such a screen is to create an administration menu item that allows the user to access that settings screen from all the Administration Screens.

0 votes
Accepted

How to determin which admin screen/sub screen I'm currently viewing

Since we now have get_current_screen(), which returns a nice object, it's become fairly easy to just use that.
kaiser's user avatar
  • 50.8k
1 vote

Menu Error in Admin Console with Custom Plugin: You do not have sufficient permissions to ac...

Does it show up and work if you add it as sub menu page to some other menu item? Please try this to make shure it works and the only problem is the slug. Some point i'd suggest to look is the parent p …
kaiser's user avatar
  • 50.8k
3 votes
Accepted

Naming Admin Menus and Submenus

You just have set the name of the $menu_slug exactly the same as the parent slug.
kaiser's user avatar
  • 50.8k
0 votes
Accepted

Why does hook priority affects admin menu permission error?

Priority All hooks & filters have a priority. Those are used to order the functions that are attached to hooks. By default the priority is 10. As the default is 10, there's a big chance that your f …
kaiser's user avatar
  • 50.8k
1 vote

how do I get rid of the links and all the links related menu items on the admin ui?

This is changed in WP 3.5 - "links" will be moved to a core plugin (like "Akismet" and "Hello Dolly") and be deactivated by default.
kaiser's user avatar
  • 50.8k
1 vote
Accepted

Change the $parent_file of a plugin page

If written the "Current Admin Info" plugin for exactly that reason: Find what you need, when you need it. It adds a help tab with all the currently available (contextual info).
kaiser's user avatar
  • 50.8k
2 votes

How To Create User Specific Admin User Pages?

You can add a new page using add_(sub)menu_page();. WordPress is pretty kind in this case and offers tons of hooks, filters and higher level API functions that help you going around this. Let's just …
kaiser's user avatar
  • 50.8k
2 votes

Reference external file as a function

Programming and machines As machines are "stupid", they need to be programmed. And programming languages don't work like languages spoken by humans as programs/machines as they can't interpret what t …
kaiser's user avatar
  • 50.8k
1 vote

how can I link to a PlugIn admin-sub-menu page after processing a formular

Simply use add_query_arg(), remove_query_arg() and get_query_var(). On your page link, you use a simple query var like step=one. $query_arg = add_query_arg( 'step', 'one', $_SERVER['REQUEST_URI'] ) …
kaiser's user avatar
  • 50.8k
2 votes

add_submenu_page set for multiple roles

add_submenu_page() and similar functions accept a capability. Capabilities are slightly confusing in WordPress as every role name is a cap as well. So instead of just adding a role name, you could jus …
kaiser's user avatar
  • 50.8k
3 votes

Meta Boxes: 'admin_init' or 'add_meta_boxes' hook?

There are several other hooks: do_action( 'add_meta_boxes', $post_type, $post ); and immediately afterwards runs: do_action( "add_meta_boxes_{$post_type}", $post ); If you want to perform differ …
kaiser's user avatar
  • 50.8k
1 vote
Accepted

difference between add_object_page and add_menu_page

It's just a wrapper for add_menu_page() with one addition: It adds the menu page as absolutely last/to the bottom of the menu.
kaiser's user avatar
  • 50.8k
1 vote

Custom Theme Want To Remove One Category From All Displays

The only solution I could imagine is removing, rewriting, replacing the meta box. // First remove the original one function wpse21483_remove_catbox() { remove_meta_box( 'post_categories_meta_box' …
kaiser's user avatar
  • 50.8k
0 votes

Change top level menu item to point to custom submenu item

Afaik, you can simply use add_query_arg( 'key', 'value' ); when registering the page. I explained the details of the WordPress admin menu system in this blog article. Can't post this hear as it's muc …
kaiser's user avatar
  • 50.8k
5 votes

Add separator to admin submenu

Add an admin menu separator Separators, if this question targets this, are the dividers of the admin menu that separate the menu into sections. Per default it's divided into a "publish" and an "admin …
kaiser's user avatar
  • 50.8k

15 30 50 per page