TransWikia.com

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

WordPress Development Asked on October 30, 2021

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.

One Answer

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.

Answered by Joshua on October 30, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP