Forums

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

  1. keha76
    Member
    Posted 11 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.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 11 months 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
    Member
    Posted 11 months 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!

Reply

You must log in to post.

About this Topic