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’));
}
}