[wp-hackers] Adding custom options to default setting pages

Pier-Luc Petitclerc pl at fusi0n.org
Sat Oct 3 03:51:20 UTC 2009


Hey wp-hackers.

I have a question for you regarding the Settings API. See, I decided that my
plugin, WP-prettyPhoto, shouldn't have an options page on its own, since
it's proper to put inside an already existing section (Settings > Media). My
problem with that idea is that I have no choice but to overwrite the
_wpnonce field using settings_field(). Doing that in an default section
makes it so that my custom options will process and save, but the default
ones will not. I've attached the plugin code as well as the Media Settings
page source so that you can get an idea. What am I doing wrong?

-- 
- pL


More information about the wp-hackers mailing list