[wp-hackers] Add_Submenu_Page Q's
Mark Jaquith
mark.wordpress at txfx.net
Wed Sep 12 21:14:34 GMT 2007
On Sep 12, 2007, at 5:01 PM, Mike Walsh wrote:
> Is there something wrong with the example? Is there some secret to
> it?
Yes, actually.
Instead of this:
> add_menu_page('Test Toplevel', 'Test Toplevel', 8, 'testtoplevel',
> 'mt_toplevel_page');
Do this:
> add_menu_page('Test Toplevel', 'Test Toplevel', 8, __FILE__,
> 'mt_toplevel_page');
Passing a string doesn't work for top-level menus.
See http://trac.wordpress.org/ticket/4907
--
Mark Jaquith
http://markjaquith.com/
Covered Web Services
http://coveredwebservices.com/
WordPress Ninja @ b5media Inc
http://b5media.com/
More information about the wp-hackers
mailing list