Quantcast
Channel: seanklein.org » WordPress
Viewing all articles
Browse latest Browse all 7

TIL: Adding Admin Menu Pages

$
0
0

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.


Viewing all articles
Browse latest Browse all 7

Trending Articles