admin管理员组文章数量:1130349
In the customizer you may change the site title and tagline (input fields) under »Site title & tagline« as an admin. When logged in as an editor the menu item is visible but when clicking on it both options are not available.
How is it possible to grand editors permission to edit title and tagline in the customizer?
In the customizer you may change the site title and tagline (input fields) under »Site title & tagline« as an admin. When logged in as an editor the menu item is visible but when clicking on it both options are not available.
How is it possible to grand editors permission to edit title and tagline in the customizer?
Share Improve this question asked Sep 5, 2018 at 14:57 user1706680user1706680 6943 gold badges13 silver badges29 bronze badges1 Answer
Reset to default 1Use a plugin like User Role Editor to add the 'manage_options' capability to the specific users or their role. Of course, this will allow them to manage all options.
Or add PHP code like this:
$wp_customize->get_setting( 'title_tagline' )->capability = 'edit_others_posts';
https://codex.wordpress/Roles_and_Capabilities
In the customizer you may change the site title and tagline (input fields) under »Site title & tagline« as an admin. When logged in as an editor the menu item is visible but when clicking on it both options are not available.
How is it possible to grand editors permission to edit title and tagline in the customizer?
In the customizer you may change the site title and tagline (input fields) under »Site title & tagline« as an admin. When logged in as an editor the menu item is visible but when clicking on it both options are not available.
How is it possible to grand editors permission to edit title and tagline in the customizer?
Share Improve this question asked Sep 5, 2018 at 14:57 user1706680user1706680 6943 gold badges13 silver badges29 bronze badges1 Answer
Reset to default 1Use a plugin like User Role Editor to add the 'manage_options' capability to the specific users or their role. Of course, this will allow them to manage all options.
Or add PHP code like this:
$wp_customize->get_setting( 'title_tagline' )->capability = 'edit_others_posts';
https://codex.wordpress/Roles_and_Capabilities
本文标签: Customizer – Allow user editor to change website title and tagline
版权声明:本文标题:Customizer – Allow user editor to change website title and tagline 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749023923a2304803.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论