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,
                 $menu_title, 
                 $capability, 
                 $menu_slug, 
                 $function, 
                 $icon_url, 
                 $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>
<?php
}
}
?>

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.

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

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

Name:
Email Address:
Phone Number:
Comment:
Submit

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?

Search

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: support@InMotionHosting.com
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!