I’m am very lost. I have a premium membership at Tuts+ and my tutorial says to use the add_options_page(); for my options page. I’ve also looked in the source and there lies the function. The codex also has this function being used to add options pages for WP-2.7 and later. Yet wordpress is failing saying that the function does not exist? How the hell is this possible? 🙁
Can anyone help me? Here’s my code for reference.
<?php
/*
Plugin Name: Sahfire Options
Plugin URI: http://demosite.com
Description: Options page for Sahfire WordPress Theme
Version: 1.0
Author: Bobby Ruby
Author URI: http://rubyfiredesigns.com
*/
function sahfire_theme_options(){ ?>
<h2>Hello</h2>
<?php }
add_action('admin_menu', sahfire_menu());
function sahfire_menu() {
add_options_page('Theme Options', 'Theme Options', 'administrator', __FILE__, sahfire_theme_options());
}
?>