Announce from diffrent role
-
I want to announce from all the roles.
function admin_menu()
{
add_options_page( $this->Name , __( ‘Announcement settings for Dashboard’ , $this->ltd ), ‘administrator’ , $this->Slug , array( $this , ‘setting’ ) );
}
the above function is working fine but when i replace the above function with
function admin_menu()
{
add_options_page( $this->Name , __( ‘Announcement settings for Dashboard’ , $this->ltd ), ‘administrator’ , $this->Slug , array( $this , ‘setting’ ) );
add_options_page( $this->Name , __( ‘Announcement settings for Dashboard’ , $this->ltd ), ‘subscriber’ , $this->Slug , array( $this , ‘setting’ ) );
}its not working it says the user don’t have permission.
What i will write in capability section or which capability i will select so that it will work for different roles.
https://www.ads-software.com/plugins/announce-from-the-dashboard/
- The topic ‘Announce from diffrent role’ is closed to new replies.