Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Options Page Plugin: User Capabilites limitation
-
First of all, very good work here. ACF is one of the few Wp Plugins i trust to run on my websites.
As i build very limited Roles for my customers ( read & some custom capabilities ) to work on WordPress backoffice i find a bit frustrating the 'edit_posts' capability required for managing options page. What about adding a filter at line 86/106 in options_page.php. Only to be clear, something like:// allow override of needed capability
$capability = apply_filters('acf_options_page_capability', 'edit_posts');
Thank you very much -
-
Hi @micc83,
Better yet, I will add in a filter to override a $defaults array which can hold infinite ACF settings!
Cheers
Elliot -
Hi @admin, so that with just one filter you'll be able to change all the default behaviors of the plugin ? Or just the options page add-on ? I guess that a minimum of division between the various domain of use of the filter is mandatory or you'll have a really big array of options, perhaps too big to be handled properly.
Cheers,
Alessandro Benoit -
Hi @micc83,
It will hold many options. At the moment, the only option is for the options page capability, but I'm thinking in the future we will have more options.
Cheers
Elliot