Custom Admin Page WordPress

 In Admin, All

Custom Admin Page WordPress on WordPress.

The function myplugin_options_page will register the admin page and the myplugin_render_options_page function will rendering the admin page. These functions could be useful for admin information or with a bit more work you can easily enhance these functions to be part of your website options.

Add these two functions on your theme’s functions.php or create a plugin.

function ns_options_page(){

  // add top level menu page
    'Options Page',
    'Options Page Title',
add_action('admin_menu', 'ns_options_page');

function ns_render_options_page() {

 if (!current_user_can('manage_options')) {
  } ?>
    <div class="wrap">
      <h1><?php echo esc_html(get_admin_page_title()); ?></h1>
      <p>Page content goes here</p>

You may find useful to do know about WordPress “Administration Screens”, you can also see here how to remove admin menu items.

Thank you for seeing my code snippet. Fell free to share and comment ? . Do you have a code snippet and you want to see it publish on my site? I will be more than happy to do it, just please send me a message here. 

Recommended Posts

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Start typing and press Enter to search

Let's work together

I'd love to work with you! Please fill out my project form to tell me more about your project/work. I reply to all enquiries within 48 hours.


  • November - Booked
  • December - Booked
  • January - Available


  • My day rate is £300.
  • I can provide a fixed price for your work.

EN - Header Enquiry Form

  • This form collects your name, email address and telephone number so that I can respond to the enquiry(ies) that you submit via this website. Please check my privacy policy for the full story on how I use, protect and manage your submitted data.