[resolved] add_menu_page() fatal error undefined function? (3 posts)

  1. keha76
    Posted 5 years 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.

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    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/

  3. keha76
    Posted 5 years ago #

    Got it working! Excellent source of information. I've learned that you can not call some functions without using hooks.

    Thank you very much!

Topic Closed

This topic has been closed to new replies.

About this Topic