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
- Possible to hide Custom Post Type UI/Menu from specific User Roles?
- Custom post type for ‘staff’ versus using wordpress user profiles?
- Custom post type role permissions won’t let me read
- Showing User’s Post Counts by Custom Post Type in the Admin’s User List?
- Prevent trash/delete action on specific post types
- How to let contributors to create a new revision(draft) editing their published posts
- How to assign specific users the capability to edit specific pages / posts / custom post types
- Allow user to Edit Posts but not Add New?
- Defining capabilities for custom post type
- Display Authors Comments on Profile Page
- Confusion with adding meta capabilities to a role after registering a Custom Post Type with corresponding ‘capability_type’ parameter
- Customize users’ capabilities to change a custom post’s post status
- Adding %author% in custom post type URL structure?
- Create user role restricted to specific CPT
- How to set individual capabilities on a taxonomy? Or how to re-register an existing taxonomy?
- Custom Post Types – Capability Type
- Custom Post Type Capabilities — Enable Edit, Disable Create and Delete
- Add Capabilities to Custom Post Type after it has been created [duplicate]
- When you create a custom post type, does that also create capabilities for editing/deleting that post type automatically?
- Show Custom Post Type by Author
- Recent comments on author page?
- How can I get the last posts by user role?
- Role Capabilities: Add New Ones?
- Custom post type capabilities require “create_posts” to access the edit posts list page
- Notice: Undefined property: stdClass::$delete_posts with custom post type
- Add custom capabilities to existing custom post type
- allow edit of custom post type but not regular posts?
- Allow Administrator role access to custom capabilities [duplicate]
- Get Author for Single Post in Custom Post Type
- WordPress post count not showing for custom post type author
- Why is my Custom Post Type not showing up after adding capabilities?
- How to only show posts assigned to current user, only in certain post types
- Custom Post Type Tag Capabilities Not Working
- get_attached_media() on author page not working
- current_user_can() return FALSE but debugging says TRUE
- Custom Post Type Capabilities
- map_meta_cap woes
- can’t see custom post content filtered under “mine” filter in admin panel
- Adding user capabilities for a custom taxonomy of a custom post type for a custom user
- How to set individual capability of post type in individual category
- Giving permission to anyone (non-users as well) with a password to edit a post, possible?
- read_post meta capability for anonymous users
- WooCommerce Customer Role Delete Custom Post Type
- delete_published_posts does not work
- URL rewrite add author as base
- Users create/join groups
- “Submit for review” for updates on existing posts
- Can multiple authors be assigned on a single custom post?
- Create custom post with custom user rules
- Custom post type submenu capabilities – custom plugin
- How to show featured image block in custom post type for Author?
- re-register custom post type with custom capabilities
- How can i display movies in profile page, added by an user?
- Author posts not appearing for custom post type
- Display an authors post on a single page only when they are logged in
- 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
- WordPress: Custom User Role cannot access Custom Post Type | “Sorry, you are not allowed to access this page”
- How to handle this specific case of custom post type?
- Custom capabilities not reflecting on admin panel
- Admin: Get all user for Custom Role
- Custom post type title of each author in his own post
- Preventing role reading others posts
- Custom Post Type not working with Capabilities
- Plugin needed to allow subscribers to post articles on the front end without admin approval [closed]
- “Author” custom post type
- Display custom post front end filter by ACF equals current user
- Clone wp-admin/users.php (Users Admin Page)
- Link custom post type to users membership
- Show all post type posts in manage users posts column
- Allowing custom role user to edit post assigned to them but don’t let them create new custom type post
- Get all of a user’s posts (custom post type) then get cumulative value of a specific meta_key value from those posts
- Add WordPress users to a custom post type
- WooThemes – Vendors / Bookings – Allow Vendors to manage resources
- Author archive custom posts only?
- UPDATED: Save a custom_field value when automatically creating a post using wp_insert_post
- I want to link an author to everything from any post type that they publish on the website
- Allow viewing the edit screen for a post type, but not make/save/publish/update changes
- Associate custom categories to different user IDs
- Prevent author role from editing others posts
- creating different edit screens for different roles
- What would prevent a custom role from viewing posts (both standard and custom)?
- Display and Allow users to edit their own profiles
- Show a custom field instead of username in the backend author area
- Custom Post Type supports author
- Custom post type & role issues
- Want to add post to user dashboard
- Read-Only custom post type
- How to display Author Profile based on Custom field value