Support » Fixing WordPress » add_menu_page() fatal error undefined function?
5 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.
You should be using add_theme_page – not add_menu_page or add_options_page.
Got it working! Excellent source of information. I’ve learned that you can not call some functions without using hooks.
Thank you very much!