Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ekka21/3109343 to your computer and use it in GitHub Desktop.
Save ekka21/3109343 to your computer and use it in GitHub Desktop.
Wordpress How to create custom dashboard help messages
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