[wp-hackers] Need help with: coding new Plugin options

Malaiac malaiac at gmail.com
Thu Nov 6 21:43:48 GMT 2008


about plugins options, don't forget to whitelist them if you want
options.php to save them

function add_yourplugin_options($whitelist_options)
  {
  $whitelist_options['yourplugin'] =
array('yourplugin_option1','yourplugin_option2');
  return $whitelist_options;
  }
add_filter('whitelist_options', 'add_yourplugin_options');

that is, if your plugin options form is pointed to options.php (which
should be the case in most plugins)

M


More information about the wp-hackers mailing list