Skip to content
Advertisement

How to give editor access to a custom made admin menu page?

I created an admin menu page in WordPress. But it is accessible only to admin. How to make it available to the editor also.

JavaScript

Advertisement

Answer

You’ll need to change the capability to an editor’s capability, i.e., editor:

JavaScript

Check here for detailed description: https://developer.wordpress.org/reference/functions/add_menu_page/

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement