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 badges1 Answer
Reset to default 1You 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
评论列表(0条)