Created
July 14, 2012 05:17
-
-
Save ekka21/3109343 to your computer and use it in GitHub Desktop.
Wordpress How to create custom dashboard help messages
This file contains hidden or 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
function my_admin_help($text, $screen) { | |
// Check we're only on my Settings page | |
if (strcmp($screen, MY_PAGEHOOK) == 0 ) { | |
$text = 'Here is some very useful information to help you use this plugin...'; | |
return $text; | |
} | |
// Let the default WP Dashboard help stuff through on other Admin pages | |
return $text; | |
} | |
add_action( 'contextual_help', 'my_admin_help' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment