Allow ALL editors to translate posts

[ad_1]

Is there a way to allow all users with the capability edit_posts to access the translator?

I have de developer license and I have enabled the User Accounts extension, but it’s a bit annoying to have to give each individual user permission (I’m managing a large multisite network). I tried with this code:

add_filter('trp_translating_capability', function() { return 'edit_posts'; } );

This shows the Translate button in the backend, so that’s cool. But When I click it, I’m still being blocked.

Is there another hook I can use to make this work?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer