Created
January 21, 2012 02:21
-
-
Save billerickson/1650825 to your computer and use it in GitHub Desktop.
Admin Pages - Help Tab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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