Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created January 21, 2012 02:21
Show Gist options
  • Save billerickson/1650825 to your computer and use it in GitHub Desktop.
Save billerickson/1650825 to your computer and use it in GitHub Desktop.
Admin Pages - Help Tab
<?php
/**
* Set up Help Tab
* Genesis automatically looks for a help() function, and if provided uses it for the help tabs
* @link http://wpdevel.wordpress.com/2011/12/06/help-and-screen-api-changes-in-3-3/
*
* @since 1.0.0
*/
function help() {
$screen = get_current_screen();
$screen->add_help_tab( array(
'id' => 'sample-help',
'title' => 'Sample Help',
'content' => '<p>Help content goes here.</p>',
) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment