How to restrict author to only access one custom post type ?

My installed Wordpress have 4 custom post type and 1 default post type. Basically what i want is that the author can also access particular one custom post type. Author must not see other post types.

Topic author capabilities users custom-post-types Wordpress

Category Web


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.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.