user roles - Restrict Author to post only to a specific category

admin2025-01-07  6

I want to restrict authors to a specific Category to write in. A plugin that is suggested on many blogs is restrict-author-posting. Unfortunately, this is no longer maintained and was removed from the plugin store.

The only suitable but not a free plugin I found was PublishPress Pro. I really don't want to pay for that functionality.

An additional plus would be, that some editors can only publish in a certain category as well.

I am willed to write/edit some code if needed - I have experience with PHP etc but have never done something in WordPress itself. I could not find any post that solved it without the plugin I mentioned above.

Thanks in advance

EDIT: I originally posted this question on r/Wordpress (/)

I want to restrict authors to a specific Category to write in. A plugin that is suggested on many blogs is restrict-author-posting. Unfortunately, this is no longer maintained and was removed from the plugin store.

The only suitable but not a free plugin I found was PublishPress Pro. I really don't want to pay for that functionality.

An additional plus would be, that some editors can only publish in a certain category as well.

I am willed to write/edit some code if needed - I have experience with PHP etc but have never done something in WordPress itself. I could not find any post that solved it without the plugin I mentioned above.

Thanks in advance

EDIT: I originally posted this question on r/Wordpress (https://new.reddit.com/r/Wordpress/comments/eyocc3/restrict_author_to_post_only_to_a_specific/)

Share Improve this question asked Feb 4, 2020 at 11:37 Alexander FinkAlexander Fink 1012 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 0

The plugin may no longer be maintained, but you can see the code at: https://plugins.trac.wordpress.org/browser/restrict-author-posting/trunk/restrict-author-posting.php

This can be used/modified under GNU General Public License to suit your needs.

On WordPress 6.1 I test restrict-author-posting and worked.

You can download restrict-author-posting from this(1) or this(2) link and use this plugin.

Note: this plugin not work on Gutenberg and work fine with Classic Editor. for disable Gutenberg editor you can use this plugin.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1736256415a358.html

最新回复(0)