Options Administration Page

See also: Adding Administration Pages wherein it discusses how to turn the options page that you get automatically from this template software into a set of tabs (one of which is the options) where you can add more content.

As described in the Handling Options page, options defined in getOptionsMetaData() automatically appear in an administration options page for the plugin.

Let’s briefly walk through that mechanism and mention some points were you can make changes.

You will find in your template code, in your XXX_Plugin.php file, this code:

Some plugin writers put an options page under the Plugins menu, others put it under the Settings menu. This function chooses the Plugins menu, but you can switch it simply by changing which line is commented out.

The function it calls adds a sub menu page whose content is provided by the settingsPage()

The settingsPage() is defined in XXX_OptionsManager.php. It is a long method. It includes the code for creating a form with fields for all options. If you want to create a different page, override settingsPage() in XXX_Plugin.php.