Change WordPress user roles and capabilities › Forums › Give user access to plugin – how to › Access to CSV Importer plugin › Reply To: Access to CSV Importer plugin
26/10/2023 at 03:11
#8525
omfint
Participant
Thanks Vladimir, so what should I add or edit to the following code to include Editor?
if(!empty($role) && in_array( ‘administrator’ , $role)){
if ( is_user_logged_in() && current_user_can(‘manage_options’) ) {
add_action(‘admin_menu’,array(__CLASS__,’testing_function’));
}
}