抱歉,只有时间提供快速修复。。。。
看看你能从这里走到哪里。。
/**
* The Admin menu page
*/
function wptuts_add_menu(){
// Display Settings Page link under the "Appearance" Admin Menu
// add_theme_page( $page_title, $menu_title, $capability, $menu_slug, $function);
$wptuts_settings_page = add_theme_page(__(\'Wptuts Options\'), __(\'Wptuts Options\',\'wptuts_textdomain\'), \'manage_options\', WPTUTS_PAGE_BASENAME, \'wptuts_settings_page_fn\');
// css & js
add_action( \'load-\'. $wptuts_settings_page, \'wptuts_settings_scripts\' );
add_action( \'load-\'. $wptuts_settings_page, \'wptuts_add_help\' );
}
function wptuts_add_help() {
$screen = get_current_screen();
if( !method_exists( $screen, \'add_help_tab\' ) )
return;
$settings_output = wptuts_get_settings();
// collect our contextual help text
$wptuts_contextual_help = $settings_output[\'wptuts_contextual_help\'];
$sidebar = \'<ul>
<li><a href="http://wordpress.org/extend/plugins/YOUR_PLUGIN/faq/">\' . __( \'FAQ\', \'your_text_domain\' ) . \'</a></li>
<li><a href="http://wordpress.org/extend/plugins/YOUR_PLUGIN/other_notes/">\' . __( \'Other notes\', \'your_text_domain\' ) . \'</a></li>
<li><a href="http://wordpress.org/extend/plugins/YOUR_PLUGIN/changelog/">\' . __( \'Change Log\', \'your_text_domain\' ) . \'</a></li>
<li><a href="http://wordpress.org/support/plugin/YOUR_PLUGIN#topic">\' . __( \'Support\', \'your_text_domain\' ) . \'</a></li>
</ul>\';
$screen->add_help_tab( array( \'title\' => __( \'Title One\', \'your_text_domain\' ), \'id\' => \'id1\', \'content\' => \'text example\'));
$screen->add_help_tab( array( \'title\' => __( \'Title Two\', \'your_text_domain\' ), \'id\' => \'id2\', \'content\' => \'text example\'));
$screen->add_help_tab( array( \'title\' => __( \'Title Three\', \'your_text_domain\' ), \'id\' => \'id3\', \'content\' => \'text example\'));
$screen->set_help_sidebar( $sidebar );
}