I am developing a plugin and I want the website Author and other users to have access of it. Please let me know how can I give access (any code or function).
I tried this
function harsh_options() {
if ( !current_user_can( ‘manage_options’ ) ) {
wp_die( __( ‘You do not have sufficient permissions to access this page.’ ) );
}
include (“admin-form.php”);
}
my form is there in admin-form.php file. I have tried this
function harsh_menu() {
add_menu_page( ‘harsh page title tag’, ‘harsh menu title’, 2 , ‘manage_options’, ‘custompage’, ‘harsh_options’, plugins_url( ‘harsh/only_icon.jpg’ ), 6 );
}
when I put “2” after “harsh menu title”, I can access the menu from Author, but then it disappear for admin. I want to give access to both.
Thanks in advance!
]]>Is there a way to give authors access to the plugin within Dashboard so that they can add downloads?
Thanks
EB
]]>