質問: add_theme_page(__('theme options'), __('theme options'), 'edit_theme_options', 'sample', 'sample_do_template'); add_action( "admin_print_scripts-$optionpage", 'sample_admin_js_head' ); } add_action('admin_menu', 'sample_add_page');
回答: うまくいった:)function sample_exists_code() { wp_enqueue_script('jquery-ui-tabs', null, array('jquery-ui-core', 'jquery'), null, false); } add_action('admin_init', 'sample_exists_code');