{"id":16942101,"date":"2023-08-02T15:38:04","date_gmt":"2023-08-02T15:38:04","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/choose-wich-role-can-access-translation-page\/"},"modified":"2023-08-02T15:38:04","modified_gmt":"2023-08-02T15:38:04","slug":"choose-wich-role-can-access-translation-page","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/choose-wich-role-can-access-translation-page\/","title":{"rendered":"Choose wich role can access translation page"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hello,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;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) : <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">function process_polylang_theme_translation() {<br \/>     if (Polylang_TT_access::<em>get_instance<\/em>()-&gt;is_polylang_page()) {<br \/>          if (Polylang_TT_access::<em>get_instance<\/em>()<br \/>          -&gt;chceck_plugin_access() &amp;&amp; current_user_can(&#8216;<strong>manage_options<\/strong>&#8216;)) {<br \/>         $plugin_obj = new Polylang_Theme_Translation();<br \/>         $plugin_obj-&gt;run();<br \/>     }<br \/>  }<br \/>  [&#8230;]<br \/>}<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I would like to use &#8220;edit_posts&#8221; capability and not &#8220;manage_options&#8221;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Is it possible for you to add this functionnality ? <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thank you !<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"template":"","class_list":["post-16942101","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16942101","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16942101\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=16942101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}