|
<?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 ); |