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

John Blackbourn johnbillion+wp at gmail.com
Sat Oct 3 04:29:42 UTC 2009

Hi Peir-Luc,

Attachments to the list get removed. Try pastebin.ca or upload the
code and send us a link.


2009/10/3 Pier-Luc Petitclerc <pl at fusi0n.org>:
> 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
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list