Choose wich role can access translation page
-
Hello,
I’ll be wonder if it could be possible to create filter, or add a setting in the plugin configuration in dashboard, to choose wich capacity of user to use in this function (file theme-translation-for-polylang.php) :
function process_polylang_theme_translation() {
if (Polylang_TT_access::get_instance()->is_polylang_page()) {
if (Polylang_TT_access::get_instance()
->chceck_plugin_access() && current_user_can(‘manage_options‘)) {
$plugin_obj = new Polylang_Theme_Translation();
$plugin_obj->run();
}
}
[…]
}I would like to use “edit_posts” capability and not “manage_options”.
Is it possible for you to add this functionnality ?
Thank you !
- The topic ‘Choose wich role can access translation page’ is closed to new replies.