Forums
Home / Fixing WordPress / add_menu_page() fatal error undefined function?
(@keha76)
12 years, 10 months ago
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.
(@esmi)
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!