M
M
Maxim Stepanov2015-12-27 16:46:57
JavaScript
Maxim Stepanov, 2015-12-27 16:46:57

Is there a strong WordPress role manager plugin that assigns permissions to custom posts?

  1. So, there is a site on WP.
  2. The site has a directory of organizations.
  3. Each organization is made through a custom post type.
  4. The WP admin is designed as a personal account with different user roles.
  5. Each user is the owner of the organization, where he can edit information about it.

The question is that the user, getting into the admin panel, has access only to his specific organization (to one custom record) and has the right to make changes only in it. Accordingly, the rest of the custom entries should be hidden from it, and all the rest of the admin panel functionality should be hidden from it.

In fact, I found a solution in the form of plugins "Advanced Access Manager" and "Editorial Access Manager".

With the help of "Advanced Access Manager" I cut down all the functionality of the admin panel for a certain role, and then leave only access to standard entries and custom entries (which, to my surprise, it does not allow to hide separately, but only together).

And with the help of "Editorial Access Manager" I can add the user id to any custom entry, who is allowed to edit this entry. And the user will only be able to edit that particular post. But in this case, the user remains visible to the rest of the custom entries, their characteristics, and so on. In fact, this problem can be solved using css, since wp adds a unique class to the post on which we hung the id. Accordingly, I can hide everything else with css.

But these are all crutches. Does anyone know a normal solution through a plugin (maybe two or three), or even better a manual where you can learn this through code and through WP functions? To anyone who reads, my deepest gratitude.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question