SHARE
TWEET

Frumph

a guest Jun 18th, 2010 156 Never
  1. add_action('admin_menu', 'comicpress_options_setup');
  2.  
  3. function comicpress_options_setup() {
  4.         $pagehook = add_submenu_page('themes.php', 'comicpress-options', __('ComicPress Options','comicpress'), 10, 'comicpress-options', 'comicpress_admin_options');
  5.         add_action('admin_head-' . $pagehook, 'comicpress_admin_page_head');
  6.         add_action('admin_print_scripts-' . $pagehook, 'comicpress_admin_print_scripts');
  7.         add_action('admin_print_styles-' . $pagehook, 'comicpress_admin_print_styles');
  8. }
RAW Paste Data
Top