I'm building a theme and when I'm calling add_menu_page or add_options_page from my functions.php file it generates a fatal error telling me it is an undefined function. Any help on this matter would be much appreciated.
I'm building a theme and when I'm calling add_menu_page or add_options_page from my functions.php file it generates a fatal error telling me it is an undefined function. Any help on this matter would be much appreciated.
You should be using add_theme_page - not add_menu_page or add_options_page.
See http://www.chipbennett.net/2011/02/17/incorporating-the-settings-api-in-wordpress-themes/
Got it working! Excellent source of information. I've learned that you can not call some functions without using hooks.
Thank you very much!
You must log in to post.