I'm using a theme that has a very robust customizer and I want users other than an admin to be able to use the customizer so they can customize what their site looks like. The URL for the customizer is at:
http://localhost/mulitsite1/wp-admin/customize.php
Is there a way that I can give access to this page for someone that has an editor type role without modifying the core Wordpress wp-admin/customize.php
file?
EDIT: I looked into the wp-admin/customize.php
file and saw the following line of code:
} elseif ( current_user_can( 'edit_theme_options' ) ) {
If I give the user the capability like this:
get_role('subscriber')->add_cap('edit_theme_options');
They have access to the customizer that I want however, I don't want them to be able to switch themes, change widgets, menus or the sidebars so can I only give them access to the customize option?
Since the following line exists on line 15 of the wp-admin/customize.php
file:
if ( ! current_user_can( 'customize' ) ) {
I tried to add that as the only capability:
get_role('subscriber')->add_cap('customize');
This didn't give me the access that I needed though.