Restrict user to only one 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 c

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745091713a4610732.html

相关推荐

  • Restrict user to only one 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 c

    12小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信