Allow custom functions to manage plugin options

Is it possible to give a custom function the ability to manage the options of certain plugins?

I'm developing a bunch of plugins, a main module with some extra modules. The main function adds a custom role and capability so that this role is an editor and the rest of the plugins in the suite can be managed and edited.

// in main plugin on activation hook
$ permissions = get_role (& # 39; editor & # 39;);
$ permissions = $ permissions-> skills;
$ Permissions[ 'custom_capability' ] = 1;

add_role (& # 39; custom_role & # 39 ;, __ (& # 39; Custom Role & # 39 ;, $ permissions);

To access the plugin pages, I have the ability when registering the options page of the plugin components custom_capabilitythat has worked to make the plugins visible to those who use the Custom role Role.

add_submenu_page (& # 39; custom-plugins & # 39 ;, & # 39; custom plug-in addons & # 39 ;, & # 39; addon & 39 ;, custom_capability & 39; custom-plugins) -addon & # 39 ;, & # 39; add_custom_addon_options_page & # 39;););

However, If this role tries to update the plugin settings, access is denied,

I tried it option_page_capability Filter, but was not lucky.

// In additional modules when registering the options page
Function give_custom_role_access () {
return & # 39; custom_capability & # 39 ;;
}
apply_filters (? option_page_capability_custom_addon_options_page ?,? give_custom_role_access & # 39;); 

There seems to be some confusion about what should go in {$ option_page} when using the option_page_capability _ {$ option_page} So I've tried both the page slug option and the slug settings group, but both did not work.