3

We've created a website that has 8 languages, Russian, Spanish or English to name a few. Each language has its own version of the website.

I'm trying to create users that will be able to only modify the site's assigned languages.

For example, if I create a user for the Russian version, that person will be only able to modify the Russian version.

The webdesigner who created the website said it cannot be done but I'm still asking, just in case.

For info, I'm using the module polylang

2 Answers 2

4

There is actually a plugin that offers this exact functionality: Polylang User Manager:

Polylang User Manager will work with Polylang WordPress multilingual Plugin, it will allow you to restrict access for editors/shop_manager or other user role based on languages they’re not assigned as Translators or editor.

1
  • Looks like a really good fit for someone willing to shell out 50$ to have something that works without tinkering.
    – satibel
    Jul 15, 2017 at 20:51
3

Disclaimer: I haven't used this, but from the description it looks like a good fit.


The groups plugin says it allows you to restrict an user's access to posts, so you could create one group per language, and assign each user to a group, then restrict users to only be able to edit posts of their group.

The language info might be duplicated between polylang and groups, but it would probably work.

If this doesn't work, leave a comment, I'll delete (or edit) the post.

3
  • Doesn't polylang save all languages in the same post via shortcodes?
    – kero
    Jul 13, 2017 at 10:36
  • 1
    @kero I dunno, I actually haven't used either, this post is just duckduck-fu.
    – satibel
    Jul 13, 2017 at 10:37
  • No, polylang duplicates the original post, so in theory you could add a user meta field to the users and then filter the posts/pages in the back-end.You could have a look at the plugin "restrict categories" (wordpress.org/plugins/restrict-categories) to get an idea on how to filter the posts in the back-end based on a condition.
    – Mike
    Jul 15, 2017 at 7:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.