Hi
How can a create a plugin for a menu which shown only to the site admin.Not for other users.
Thanks
Pradeep
Hi
How can a create a plugin for a menu which shown only to the site admin.Not for other users.
Thanks
Pradeep
Try reading through http://codex.wordpress.org/Adding_Administration_Menus
Or look at a plugin that does this and do what they did.
Hi tim.moore
I followed the same method.But even if i logged in as other user than site admin it is getting shown to them as well.
Ok, try this:
function add_siteadmin_page() {
add_submenu_page('wpmu-admin.php',
'Name of Page',
'Name of Page',
10,
'function_that_outputs_page',
'function_that_outputs_page');
}
add_action( 'admin_menu', 'add_siteadmin_page' );
You should create a function that displays the options page and replace the function_that_outputs_page
with the name of your output function.