Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.