[wp-hackers] Adding custom options to default setting pages
Pier-Luc Petitclerc
pl at fusi0n.org
Sat Oct 3 05:25:49 UTC 2009
WP-prettyPhoto PHP Source: http://pastebin.ca/1590213
HTML Source of Media Settings Page: http://pastebin.ca/1590214
On Sat, Oct 3, 2009 at 12:29 AM, John Blackbourn
<johnbillion+wp at gmail.com<johnbillion%2Bwp at gmail.com>
> wrote:
> Hi Peir-Luc,
>
> Attachments to the list get removed. Try pastebin.ca or upload the
> code and send us a link.
>
> John
>
> 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
> >
> >
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
--
- pL
More information about the wp-hackers
mailing list