WordPress Plugin Development – Settings page

Solution:

You could make use of the wordpress *_option() functions to store arbitrary data for your plugin, you can prefix it with your plugins name to ensure you don’t collide with any existing data.

add_option('yourpluginnamehere_optionname','somedefaultdata'))

http://codex.wordpress.org/Options_API

From there you can use…

update_option('yourpluginnamehere_optionname',$somedatahere))
get_option('yourpluginnamehere_optionname');
delete_option('yourpluginnamehere_optionname');

You should also have a register_activation_hook() and register_deactivation_hook() process to create and clean up your plugins options when the plugin is installed/removed.


If you create and manage additional tables yourself, ensure you prefix them to ensure clear separation from the standard word press tables.

Create the appropriate activation/deactivation hooks to assist with plugin maintenance.