Is there a way for this plugin to restrict categories for front end editors?
]]>Matthew,
I’m seeing the following error in my log file after updating our LEMP stack to PHP 8.0..
the magic method mchgdbcbasepublicplugin __wakeup must have public visibility..
I did my own patch in the code at line 59/60 by following that direction to make the function public, any chance you could roll that into the plugin too so we can download an update that fixes/supports PHP 8?
I’m happy to provide more exacting details to contribute to a supported solution. Thx!
JR
]]>Hello,
First of all, thanks for the plugin, it is very useful.
I write you because I have many categories (57 in total) and I want to restrict the categories that Editor profiles can see in the backend. I want he see only 37 categories. The other 20 categories can only be viewed by the Administrator.
But when it comes to exceeding the 31 categories visible to the Editor profile, the categories in the Backend disappear. I guess there’s a limit to managing categories, it’s right?
Can I extend this limit?
Greetings
Mauricio
Hi, this is a great plugin, but if this support woocommerce product category ? Thanks
]]>I have checked two categories for Author role and saved but they are still visible if an author edit or write a new post.
]]>En el backend no filtra ni por autor ni por usuario, tanto el usuario como el autor siguen pudiendo ver y publicar con las categorias restrindidas.
]]>Hi
Great plugin. Can I ask is it still maintained?
]]>Please Please Please can you add support for custom taxonomies and custom post types.
]]>It does hide the categories in some way. E.g. I can only see posts from selected categories on Posts admin page. BUT, I am still able to post in all categories, which makes this plugin kind of meaningless.
I believe it does need an update. ??
]]>A user reported a bug to me. They have 22 users , if they restrict categories for person on the first page, then save, and then go to page 2 and restrict categories for another person and then save. ALL the restrictions on page 1 are wiped!!
There is a work around by having all users listed on page 1
]]>I just installed WP 5.4 and am finding that a restricted user can still add posts to any category. This is a nightmare because if the user doesn’t “stay in their lane” I have to go and edit their post categories.
Any idea when this will be addressed?
]]>En la versión 5-4 es he comprobado que el plugin funciona muy bien pero que es necesario definir todas las categorías antes de instalar el plugin. Si una vez instalado el plugin se quiere a?adir una nueva categoría esta categoría no aparece y no se puede usar. La categoría se puede ver en la tabla WP-terms pero no se muestra al editar un post. Por otro lado si se borra una categoría efectivamente desaparece de la tabla wp-terms, pero al editar un post ya no aparece ninguna categoría.
Para a?adir una categoría una vez instalado el plugin es necesario borrar el plugin, desactivar no resuelve el problema.
Una vez borrado el plugin se pueden a?adir o borrar las categorías, y después instalar el plugin y configurar otra vez los usuarios.
Esta prueba se ha realizado en tres instalaciones con diferentes plugins instalados, una de pruebas, una de formación y otra de producción.
Hi,
It’s great plugin, my suggest add option deny read in front end
Thanks!
/**
* Select categories read
*
*/
add_filter( ‘get_terms_args’, ‘restrict_by_category’, 10, 2 );
function restrict_by_category( $args, $taxonomies ) {
$user = wp_get_current_user();
$user_cap = $user->roles;
$afilter = array();
$settings = get_option( ‘RestrictCats_options’ );
foreach ($settings[$user_cap[0].’_cats’] as $value) {
$afilter[] = $value;
}
if ( !is_admin() && !current_user_can(‘administrator’) ) {
$args[‘slug’] = $afilter; // Array of cat ids you want to show
}
return $args;
}
Does it works with Woocommerce product categories?
]]>Works fine with old tinymce editor, but show all categories em Gutember editor, any solution?
]]>I was pretty excited about this plugin. It actually works as advertised, restricting CATEGORIES by users (I don’t restrict by roles as I don’t allow system wide post creation).
I have two POST TYPES: the generic POST which this plugin works flawlessly; and another called PODCAST used by PODLOVE. This is where this plugin chokes, displaying all the CATEGORIES without any restriction.
Anyway to fix this so it works with custom post types.
thanks in advance.
]]>I have the Restrict Categories plugin installed. When I restrict a user to a specific category it seems to work initially but the next day the settings are back to default. I’m the only admin so there is no possibility that anyone else is manually resetting the options to default by hitting the reset button. I read in the change log that you fixed a saving bug on August 30, 2019. I’m not so sure that it is fixed. I have a lot of authors and a lot of categories and I would really love for this to work. Please help.
]]>If the category panel is enabled in visual editor, then user still can post to another category.
]]>I need something like this
]]>There are two problem with this plugin.
1) Can’t create new category or edit category.
2) In Post section, can’t select “all categories”
Hi,
Is here possible restrict category automaticly for only current logged in Author, who created it?
Hi !
Since last WP update (about 10 days) my authors can’t see their planned post anymore nor recent published posts (in admin).
I had to deactivate your plugin.
This plugin would be great if it also restricted woo commerce product categories..
]]>First off thanks for the great plugin!
There’s one significant issue though: it doesn’t work with custom post types.
When we create a new post of a custom type, the “categories” list shows all the categories defined on the system, regardless of whether the user is actually limited by “Restrict Categories”.
So we can create the post with a category which the user is actually not authorized to tag.
Interestingly, after creation, we go edit the very same post, and now the “categories” list is correctly filtered. So we can only tag the post with authorized categories in further edits.
However, the damage is already done; as the post was already tagged with an unauthorized category when it was created; further edits would only “add” other authorized categories. As a result the post will still always be tagged with the unauthorized category.
This is a really good plugin so it’d really be great if this issue could be fixed ASAP.
Thanks!
]]>Hello,
When i deactivate this plugin all my categories are visible. When I activate this plugin all my categories are gone.
Please help me.
]]>Hi,
Can i restrict category to certain users.
If it is possible
Hi
This plugin looked exactly like what I was after however after install I quickly realised it only restricts “categories” (posts)
I am using woocommerce and what I really needed was this set up to restrict product categories which do not show up in the post categories
Any suggestions ? or workarounds
Thanks
I use this plugin on some sites I administer with no problems whatsoever, but I am wondering if you will continue support for this, as it was last updated 2 years ago and states that it is only compatible up to 3.8.11??
]]>Hello,
this pluggin doesn’t seems to work, or maybe I made a mistake ?
I have last plugins and wordpress instal, also, I created my own roles for reading, with :
function custom_roles() {
global $wp_roles;
add_role(
'role_inter',
__('Interne'),
array(
'read' => true,
'edit_posts' => false,
'delete_posts' => false,
)
);
add_role(
'roles_free',
__('Freelance'),
array(
'read' => true,
'edit_posts' => false,
'delete_posts' => false,
)
);
add_role(
'role_externe',
__('Externe'),
array(
'read' => true,
'edit_posts' => false,
'delete_posts' => false,
)
);
}
add_action('after_setup_theme', 'custom_roles');
Is it a problem if the role is not from the core?
I really have to restrict categories for 2 different kind of readers, does someone can teach me?
Thank you a lot ??
Hi all,
I love this plugin, but I would like to be able to use it in frontend not only in backend. Someone know how to create in front end a page for managing users and categories?
Tx