How to provide the plugin access to the Editors

If you want to give the plugin access to the Editor role users, you can do it easily by adding the following custom code to your current theme’s functions.php file. If you check the code, you can see an action hook (sp_wp_team_pro_ui_permission) available in the plugin, which allows you to modify the plugin’s functionality.

function sp_team_pro_show_to_editor($capability){
    $capability = 'edit_others_pages';
    return $capability;
add_filter( 'sp_wp_team_pro_ui_permission', 'sp_team_pro_show_to_editor' );