twentyfourteen_contextual_help

Add contextual help to the Themes and Post edit screens.

Description

twentyfourteen_contextual_help(); 

Usage

  1. if ( !function_exists( 'twentyfourteen_contextual_help' ) ) { 
  2. require_once '/inc/customizer.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = twentyfourteen_contextual_help(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/inc/customizer.php  
  1. function twentyfourteen_contextual_help() { 
  2. if ( 'admin_head-edit.php' === current_filter() && 'post' !== $GLOBALS['typenow'] ) { 
  3. return; 
  4.  
  5. get_current_screen()->add_help_tab( array( 
  6. 'id' => 'twentyfourteen',  
  7. 'title' => __( 'Twenty Fourteen', 'twentyfourteen' ),  
  8. 'content' => 
  9. '<ul>' . 
  10. '<li>' . sprintf( __( 'The home page features your choice of up to 6 posts prominently displayed in a grid or slider, controlled by the <a href="%1$s">featured</a> tag; you can change the tag and layout in <a href="%2$s">Appearance → Customize</a>. If no posts match the tag, <a href="%3$s">sticky posts</a> will be displayed instead.', 'twentyfourteen' ), admin_url( '/edit.php?tag=featured' ), admin_url( 'customize.php' ), admin_url( '/edit.php?show_sticky=1' ) ) . '</li>' . 
  11. '<li>' . sprintf( __( 'Enhance your site design by using <a href="%s">Featured Images</a> for posts you’d like to stand out (also known as post thumbnails). This allows you to associate an image with your post without inserting it. Twenty Fourteen uses featured images for posts and pages—above the title—and in the Featured Content area on the home page.', 'twentyfourteen' ), 'http://codex.wordpress.org/Post_Thumbnails#Setting_a_Post_Thumbnail' ) . '</li>' . 
  12. '<li>' . sprintf( __( 'For an in-depth tutorial, and more tips and tricks, visit the <a href="%s">Twenty Fourteen documentation</a>.', 'twentyfourteen' ), 'http://codex.wordpress.org/Twenty_Fourteen' ) . '</li>' . 
  13. '</ul>',  
  14. ) );