[wp-hackers] Change in plugin Options page handling
Owen Winkler
ringmaster at midnightcircus.com
Thu Feb 3 14:42:44 GMT 2005
Morgan Doocy wrote:
> Note that backward compatibility with the current method will be
> maintained, but it is deprecated, and plugin documentation will be
> changed to reflect the new method only. At some point in the future the
> double-loading functionality will be eliminated entirely.
How does one now add menus to the interface if not using
add_options_page()? Or do you still use add_options_page() to add
menus, but use the hook to fill the page? Otherwise, how do you tell
the admin which menu set to display above the page? (The plugin hook is
called after the menu is generated, so the menu is generated based on a
variable that can't be set.)
The name of the hook is a misnomer, since this hook would presumably be
valid for any page that was tossed at the admin.php in $_GET['page'].
Should it be 'admin_page_*' instead?
Has anyone else noticed that in today's CVS plugin hooks can now have
more than one value passed to them?
I'm glad that these changes do not seem to have been committed yet,
since that may mean we still have time to comment on their
repercussions. Of course, this is my initial reaction to having to
revise several months worth of plugin work and all of the related API
docs, which I remember writing a decent portion of.
Owen
More information about the hackers
mailing list