Skip to content


TIL: Adding Admin Menu Pages

When using functions like add_submenu_page etc, make sure that you add them at the admin_menu action. If you try to add them any place other than that you will get “Insufficient Privileges” errors when trying to go to the page.

NOTE: If you are in WP 2.8 WordPress allows you to run those functions at admin_init, but don’t be fooled they will break again in WP 2.8.1.

Posted in Code, PHP, Plugins, Themes, Things I've Learned, WordPress. Tagged with , , , .

One Response

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. Wordpresser said

    HA! Thanks a bunch for this tip! Now why in the !”"#ยค%/() doesn’t any of the documentation anywhere make this REALLY CLEAR?

Some HTML is OK

(required)

(required, but never shared)

or, reply to this post via trackback.