[wp-hackers] Registration of plugin options?

mrmist listswphackers at mist.org.uk
Mon Mar 16 21:46:25 GMT 2009

In message <eff2e86c0903161403pdc69df7xeb23b16ee1e3b568 at mail.gmail.com>, 
Ronald Heft <ron at cavemonkey50.com> writes
>Ditto on the info. I added the register_setting option for all my plugins
>when upgrading them to 2.7, but I'm still not sure what that function

Indeed.  I have a whole section of code for register_settings ready to 
drop in to the plugin that I'm putting together now, but currently don't 
see a use for it.

There does seem to be a value if you want an automatically generated 
options section adding to an existing options page, but, as far as I can 
see, the same does not apply to adding a new options page - so that's 
not much use to me.

I can't see this coming into 2.8.  When or if it comes in it will need 
to be really well publicised in advance to avoid breaking a whole load 
of plugins. In my opinion the level of information around it at the 
moment is too low by a long way for such a severe change, it'd just 
cause chaos.

That said I could see it being useful to be able to automatically have 
my option fields sanitized, and if there was another function that could 
create an options page by option setting group that would be neat.

More information about the wp-hackers mailing list