Search Results
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 |
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
Restricted access for other user roles
Actually its very simple ex:
// only administrator
if ( ! current_user_can('manage_options') ) {
add_action( 'admin_menu', 'remove_woocommerce_menu_pages', 999 );
function remove_woocommerce_ …
1
vote
Show limited menu to admin
you can create a new role and set the manage-posts to it so he could approve/reject posts
then you can remove menu features as you like with this function:
function remove_menus () {
global $menu;
$ …
9
votes
Accepted
Plugin to remove Admin menu items based on user role?
Update:
reading mike's answer again got me thinking that you can add a new capability to a role and use that as you removal condition, so:
// first add your role the capability like so
// get …
7
votes
Accepted
Wordpress Admin Tooltip hooks
Here is the simplest implementation I know of since there is no real API:
//add the needed scripts and styles
add_action('admin_enqueue_scripts', 'wpse_46028_enqueue_admin_scripts');
function wpse_46 …
0
votes
Remove Custom Post Type menu for non-administrator users.
i don't know whats wrong with the code but whenever i need to limit menu items to users
i use:
Admin Menu Editor
a plugin that does just that for you.
3
votes
Create a admin page in wordpress without admin menus ("wordpress sidebars")
You can use the built in ThickBox to display the popup by Ajax:
//first add thickbox to your page
function add_thickbox(){
if(is_admin() && (isset($_GET['page']) && $_GET['page'] == "my-plugin-fi …
6
votes
Add "external" link to admin menu in the backend
you can create a function that redirects to the front-end
like this:
function redirect_home_987(){
wp_redirect( home_url() );
exit;
}
and call that function in WordPress default add_menu_page …
3
votes
Changing Admin Menu Labels
You might want to look at this question
and the class they mention there on gist
which holds functions that you ara looking for
rename_admin_menu_section()
to rename for instance change Posts to Arti …
3
votes
Accepted
Ordering Submenu Pages in WP 3.1
From the codex:
Note: When using 'some string' to show
as a submenu of a menu page created by
a plugin, this item will become the
first submenu item, and replace the
location of the top le …