Creating custom options panels in WordPress is relatively easy. First, to create the menu item and the new page, see Adding Administration Menus.
In every moment of our existence, we are in that field of all possibilities where we have access to an infinity of choices. Creating compelling options is one of the most neglected phases of strategy and is hard option creation, necessitating a combination of external orientation, internal insight, creativity, passion, and discipline. If there is one skill that strategic leaders excel at it is in creating compelling options to a problem or opportunity. The quality of options is the limiting factor in the potential growth of a business. The right options can stretch the potential of a business, while the status quo or limited and narrow options can constrain the potential of a business.
So long as you stick to this structure, WordPress will option creation all of the option creation, update, saving, option creation redirection for you. It will check permissions, and do all that other magic behind the scenes.
The Creation of Option
Several new functions were added in WordPress 2. These new functions are optional in WordPress 2.
They are required for WordPress MU 2. See Migrating Plugins and Themes to 2. This article only covers the markup of the Settings page itself.
For more information regarding how to add the Settings page, refer to Administration Menus Where to Save the Code You can either put the option creation for your options page in your plugin php file or, for Themes, in option creation.
Closing Tags Then obviously close the form tag after your other options, and if you like, include another "Update Options" button, this is the WordPress default. They can also name a sanitize callback function as a security measure to check each option's value.
View Otto's tutorial here for better examples of workable code. In addition, there's another article available by ozh.
To add icon to for your options page use the following code [this will work on version 3. Much simpler and simply works.
This is an updated version of Otto's tutorial. Otherwise WordPress does not know which setting it is suppose to update and it will fail to update. To solve it, use the solution in this WordPress Answers postor alternatively the one in this blog post. External Resources.