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 with the help of the following custom code. 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' );