function __construct($args = array()) { $defaults = array('name' => 'My Theme', 'dependencies' => array('WP_HELPER_FUNCTIONS', 'WP_OUTPUT', 'WP_DEBUGGER'), 'phpversion' => 5.2, 'admin_pages' => array('menu_page' => array('page_title' => 'My Theme Settings', 'menu_title' => 'My Theme', 'access_level' => 'edit_posts', 'file' => 'my_theme', 'function' => 'theme_admin_page', 'icon_url' => ''), 'submenu_pages' => array(), 'theme_page' => array('page_title' => 'My Theme Settings', 'menu_title' => 'My Theme', 'access_level' => 5, 'file' => 'my_theme', 'function' => 'theme_admin_page')), 'hide_admin_menus' => array(), 'widget_groups' => array(), 'no_styles' => FALSE, 'no_scripts' => FALSE, 'no_widgets' => FALSE, 'no_rewrite' => FALSE, 'no_save_plugins_list' => TRUE, 'no_hide_admin_menus' => FALSE, 'no_log_summary' => FALSE, 'no_flush_custom_theme_options' => TRUE); $args = WPHF::md_wp_parse_args($args, $defaults); // _log($args, __METHOD__); // prep for base theme $this->add_theme_hooks(); parent::__construct($args); // customize wp on init $this->add_custom_wp_hooks(); $this->wp_security_hooks(); $this->wp_shortcode_hooks(); }