最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Restrict user to only one custom post type

programmeradmin0浏览0评论

I am new to wordpress, i create a custom post type called news and i need to restrict access to one user, to only this custom post type.

I am using wordpress 5.3, i do install the advanced custom fields plugin to create this custom page.

Which are my options? to create custom functions inside functions.php or install any plugin to create this custom role with acces only to this custom post type?

I am new to wordpress, i create a custom post type called news and i need to restrict access to one user, to only this custom post type.

I am using wordpress 5.3, i do install the advanced custom fields plugin to create this custom page.

Which are my options? to create custom functions inside functions.php or install any plugin to create this custom role with acces only to this custom post type?

Share Improve this question asked Oct 10, 2019 at 18:39 Ângelo RigoÂngelo Rigo 1231 silver badge6 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

You should be able to use roles to accomplish this. Check this tutorial here: https://3.7designs.co/blog/2014/08/restricting-access-to-custom-post-types-using-roles-in-wordpress/

I would have just put this as a comment but I guess I have to have more reputation on this site.

发布评论

评论列表(0)

  1. 暂无评论