Forums
Forums / Plugin: The SEO Framework – Fast, Automated, Effortless. / User Role Access
(@jakus)
8 years, 4 months ago
Hi there,
I couldn’t find an existing topic for this; just wondering if there’s an easy way to allow ‘Editor’ users to access the plugin config options?
I know they’ll be able to edit keywords etc.
Just wondering if this was possible 🙂
Cheers, J
(@cybr)
Hi @jakus,
Since TSF 3.0, there’s a filter available:
// @link <https://codex.wordpress.org/Roles_and_Capabilities#Editor> add_filter( 'the_seo_framework_settings_capability', function( $default = 'manage_options' ) { return 'edit_pages'; } );
You can place this filter in a plugin, mu-plugin or a theme’s functions.php file.
functions.php
I hope this helps! Cheers 🙂
That’s awesome @cybr!
Works perfectly, thank you.
The topic ‘User Role Access’ is closed to new replies.