Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created March 23, 2012 04:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billerickson/2166628 to your computer and use it in GitHub Desktop.
Save billerickson/2166628 to your computer and use it in GitHub Desktop.
Homepage Help
<?php
/**
* Add Homepage Help
* @link http://www.billerickson.net/code/homepage-help
*
* @param string $post_type
* @param object $post
*/
function be_homepage_help( $post_type, $post ) {
if( $post->ID !== get_option( 'page_on_front' ) )
return;
get_current_screen()->add_help_tab( array(
'id' => 'homepage-sections',
'title' => 'Homepage Sections',
'content' => '<p><img src="' . get_stylesheet_directory_uri() . '/images/homepage-help.jpg" /></p>',
) );
}
add_action( 'add_meta_boxes', 'be_homepage_help', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment