コード例 #1
0
 /**
  * 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', 'custom-content-portfolio'), 'callback' => array($this, 'help_tab_overview')));
     // Screen content help tab.
     $screen->add_help_tab(array('id' => 'screen_content', 'title' => esc_html__('Screen Content', 'custom-content-portfolio'), 'callback' => array($this, 'help_tab_screen_content')));
     // Available actions help tab.
     $screen->add_help_tab(array('id' => 'available_actions', 'title' => esc_html__('Available Actions', 'custom-content-portfolio'), 'callback' => array($this, 'help_tab_available_actions')));
     // Set the help sidebar.
     $screen->set_help_sidebar(ccp_get_help_sidebar_text());
 }
コード例 #2
0
 /**
  * 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', 'custom-content-portfolio'), 'callback' => array($this, 'help_tab_general')));
     // Permalinks settings help tab.
     $screen->add_help_tab(array('id' => 'permalinks', 'title' => esc_html__('Permalinks', 'custom-content-portfolio'), 'callback' => array($this, 'help_tab_permalinks')));
     // Set the help sidebar.
     $screen->set_help_sidebar(ccp_get_help_sidebar_text());
 }
コード例 #3
0
 /**
  * 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', 'custom-content-portfolio'), 'callback' => array($this, 'help_tab_title_editor')));
     // Project details help tab.
     $screen->add_help_tab(array('id' => 'project_details', 'title' => esc_html__('Project Details', 'custom-content-portfolio'), 'callback' => array($this, 'help_tab_project_details')));
     // Set the help sidebar.
     $screen->set_help_sidebar(ccp_get_help_sidebar_text());
 }