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.


One Response
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.
HA! Thanks a bunch for this tip! Now why in the !”"#ยค%/() doesn’t any of the documentation anywhere make this REALLY CLEAR?