[wp-testers] Adding a settings page to the network admin
Peter Westwood
peter.westwood at ftwr.co.uk
Fri Nov 26 15:46:26 UTC 2010
On 26 Nov 2010, at 15:19, Louy wrote:
> Hello,
>
> I'm using wordpress 3.1 Beta 1 and i've been wondering, how can i add a page
> to the *wp-admin/network/settings.php* submenu?
> i tried using *add_submenu_page('**network/settings.php', ...)* but it
> didn't work!
For the normal admin you call add_submenu_page in a function hooked on the admin_menu hook
For the network admin you call add_submenu_page in a function hooked on the network_admin_menu hook
For the user admin you call add_submenu_page in a function hooked on the user_admin_menu hook
Cheers
--
Peter Westwood
http://blog.ftwr.co.uk | http://westi.wordpress.com
C53C F8FC 8796 8508 88D6 C950 54F4 5DCD A834 01C5
More information about the wp-testers
mailing list