As linked to in the other comment by @AXheladini; you will need to set up Roles and/or Capabilities. Once that is done use the function current_user_can()
(codex page) to allow or deny the actual page.
Related Posts:
- How to restrict specific post types from being read or added by specific user roles (eg. author)?
- WordPress allow access only one custom post type “xyz” to custom user role but need to hide all admin panels
- Prevent author role from editing all posts in custom post type?
- WP-Admin edit.php & post.php slowdown after import of 10k users
- Roles for Custom Post Types
- Permit users with author role to edit a custom post type
- Disable user from updating certain posts
- Select other roles as custom post authors
- how to show Author post type count
- “Submit for review” for updates on existing posts
- Access to CPT but not to ‘post’ post type
- Can multiple authors be assigned on a single custom post?
- Allow add new post access to custom post but not wp post for some role
- Query posts based on the meta key values of logged-in users?
- Cannot Create new Post within Custom Post Type
- Create custom post with custom user rules
- Allow user to only access custom post type
- Custom post type submenu capabilities – custom plugin
- How to show featured image block in custom post type for Author?
- Associate multiple users to custom post type
- How to assign permissions for a CPT to a user
- re-register custom post type with custom capabilities
- Organize WordPress site, so it can maintain with huge database
- How can i display movies in profile page, added by an user?
- WordPress custom post type capabilities issue
- Author posts not appearing for custom post type
- Custom User role not working with custom post type
- Display an authors post on a single page only when they are logged in
- get comments by current user inside page template
- how to associate several authors to a custom post type
- Conflict between Capabilities and Menu Visibility with Custom Post Types
- Assign post type to many users
- Check if user has comment on current post
- Role capabilities issue
- WordPress: Custom User Role cannot access Custom Post Type | “Sorry, you are not allowed to access this page”
- Query within a foreach within a query (queryception)
- Showing User’s Post Counts by Custom Post Type in the Author.php?
- post body class for current user only if they are the post author
- Capabilities not working with custom post type
- How to handle this specific case of custom post type?
- Restrict category access to specific users/groups. Author always has access
- Custom Post Type – after disable ‘Add New’, I can’t edit and delete post
- Wp custom post custom capability not working together
- Custom capabilities not reflecting on admin panel
- Find custom post type url by author
- Admin: Get all user for Custom Role
- Display latest posts of author in a custom post type
- Add a custom post when inserting a new user in WordPress?
- Custom post type title of each author in his own post
- Preventing role reading others posts
- Order users by number of posts (includes custom post type)
- get post count for related author
- Custom Post Type not working with Capabilities
- Display author box on just certain category posts?
- Roles and Capabilities in Custom Post Types
- Display custom post counts for author , not default posts
- custom post type capabilities – needs to be VERY secure
- Plugin needed to allow subscribers to post articles on the front end without admin approval [closed]
- Use Author Ids or Names to echo different output inside loop
- Creating an option for writing a post without an author attribution for a group blog on WordPress
- Showing only posts from the current user who is logged in?
- “Author” custom post type
- Display custom post front end filter by ACF equals current user
- How to fix the Post Preview Button (CPT & map_meta_cap)
- Restrict Custom Post Type per role in Dashboard
- Restrict access to custom post type based on its taxonomy terms
- users post count
- Clone wp-admin/users.php (Users Admin Page)
- Restrict access only of custom post type with standard capabilities to edit_post
- Why “Mine” is the default view when adding ‘capability_type’ in register_post_type
- Link custom post type to users membership
- CPT requires manage_options and edit_posts for some reason
- Show all post type posts in manage users posts column
- how to display author name in custom post type
- How to only display all posts to a custom User Role?
- Limit custom post type to the authors only on front-end!
- Limit 1 post by user in each custom post type
- Allowing custom role user to edit post assigned to them but don’t let them create new custom type post
- Can’t see post status drop down for custom post type
- Get all of a user’s posts (custom post type) then get cumulative value of a specific meta_key value from those posts
- Custom Post Type Capabilities Singular/Plural
- Assign a Post to a User
- Multiple useres editing specified content
- Add WordPress users to a custom post type
- How do I get all authors posts of a custom post type outside loop
- Why is wp_list_authors not picking up Authors from CPT’s?
- Need to display author’s email id in the “Edit post” field in wp dashboard. How do I do this?
- Custom Post Type Query by user id
- Autofill advanced custom field with user data
- WooThemes – Vendors / Bookings – Allow Vendors to manage resources
- Delete Post by User
- Capibilities of CPT WordPress
- How to make id user can be view content
- How can I remove “Add new” button on custom post type
- Display posts on parent post if author coincides
- Author archive custom posts only?
- connect users to Custom post types
- Reference field of users in custom post type
- Set a static page as a user profile page?
- Capabilities and mapping required for a role to be able to edit other’s posts of a custom type, BUT only be able to edit their own blog posts