New answers tagged

1 vote

How can I have an admin only non-dashboard page in my Wordpress plugin

You'll need something like this: function your_callback() { if ( ! current_user_can( 'manage_options' ) ) { return; } // add your code here to display the menu for admins only } Basically ...
robwatson_dev's user avatar

Top 50 recent answers are included