Hello support team,
I’m using the latest GP-theme and have the WooCommerce plugin installed. Now I noticed, that when a user with the role shop_administrator is logged in, the fields “Site Title” and “Tagline” as well as the Site Icon fields in “Customise -> Site Identity” are not shown.
In my case, I want the shop manager to be able to edit the site title and tagline.
I tried to solve the issue by adding the following code to the functions.php:
add_action( 'admin_init', 'hb_add_capability_for_non_admin');
function hb_add_capability_for_non_admin() {
$roleObject = get_role( 'shop_manager' );
if (!$roleObject->has_cap( 'some_capability' ) ) {
$roleObject->add_cap( 'some_capability' );
}
}
Unfortunately I can’t find out, which capability I have to set, in order to make the mentioned fields visible. It’s not “edit_theme_options”, which is already set in class-wc-install.php.
Hope you can help, or is it just WooCommerce related?
Thanks, Harry