InMotion Hosting Support Center

If you are going to create a WordPress plugin, you also want to create a WordPress admin menu for your plugin so users can get to your plugin settings to adjust them.

You can create a WordPress plugin page to tell WordPress what settings users can adjust from the dashboard.

Add WordPress plugin page

When you create a WordPress admin menu, one of the add_menu_page options is $function.

if( !function_exists("extra_post_info_menu") )
function extra_post_info_menu(){
  function   = 'extra_post_info_page';
  add_menu_page( $page_title,
                 $position );

This defines the function WordPress will use when displaying your menu page for the plugin.

In this example I named mine extra_post_info_page. I can start by just setting a heading on my page.

if( !function_exists("extra_post_info_page") )
function extra_post_info_page(){
  <h1>WordPress Extra Post Info</h1>

Plugin page with basic info

The results of our code so far just displays some text on our plugin page.

extra post info admin page with just heading

Save WordPress plugin settings with a form

Now that you have a very basic WordPress plugin page created, the next step is to save WordPress plugin settings with a form so that your plugin can load those settings later.

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

Social Media Login

Social Login Joomla

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Post a Comment

Email Address:
Phone Number:

Please note: Your name and comment will be displayed, but we will not show your email address.

0 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!