Remove add post for user role


I add new role with WP Members, I also use Publishpress and user role editor
For my new role, I want to disable the capability to create posts (built-in not custom post), not only with CSS but the entire capability. My custom role can only edit post
I know it’s possible, I already see that but I can’t find how to do this.

I tried to remove_cap(‘create_post’) but it doesn’t work

Could you help me please ?

user7734861 2 years 2020-10-22T13:10:21-05:00 0 Answers 8 views 0

Leave an answer