/** * Adds help tabs. * * @since 1.0.0 * @access public * @return void */ public function add_help_tabs() { // Get the current screen. $screen = get_current_screen(); // General settings help tab. $screen->add_help_tab(array('id' => 'general', 'title' => esc_html__('General Settings', 'theme-designer'), 'callback' => array($this, 'help_tab_general'))); // Permalinks settings help tab. $screen->add_help_tab(array('id' => 'permalinks', 'title' => esc_html__('Permalinks', 'theme-designer'), 'callback' => array($this, 'help_tab_permalinks'))); // Set the help sidebar. $screen->set_help_sidebar(thds_get_help_sidebar_text()); }
/** * Adds custom help tabs. * * @since 1.0.0 * @access public * @return void */ public function add_help_tabs() { $screen = get_current_screen(); // Title and editor help tab. $screen->add_help_tab(array('id' => 'title_editor', 'title' => esc_html__('Title and Editor', 'theme-designer'), 'callback' => array($this, 'help_tab_title_editor'))); // Project details help tab. $screen->add_help_tab(array('id' => 'theme_details', 'title' => esc_html__('Project Details', 'theme-designer'), 'callback' => array($this, 'help_tab_theme_details'))); // Set the help sidebar. $screen->set_help_sidebar(thds_get_help_sidebar_text()); }
/** * Adds custom help tabs. * * @since 1.0.0 * @access public * @return void */ public function add_help_tabs() { $screen = get_current_screen(); // Overview help tab. $screen->add_help_tab(array('id' => 'overview', 'title' => esc_html__('Overview', 'theme-designer'), 'callback' => array($this, 'help_tab_overview'))); // Screen content help tab. $screen->add_help_tab(array('id' => 'screen_content', 'title' => esc_html__('Screen Content', 'theme-designer'), 'callback' => array($this, 'help_tab_screen_content'))); // Available actions help tab. $screen->add_help_tab(array('id' => 'available_actions', 'title' => esc_html__('Available Actions', 'theme-designer'), 'callback' => array($this, 'help_tab_available_actions'))); // Set the help sidebar. $screen->set_help_sidebar(thds_get_help_sidebar_text()); }