add_contextual_help

Definition:
function add_contextual_help($screen, $help) {}

Add contextual help text for a page

Parameters

  • string $screen: The handle for the screen to add help to. This is usually the hook name returned by the add_*_page() functions.
  • string $help: Arbitrary help text

Source code

function add_contextual_help($screen, $help) {

	global $_wp_contextual_help;



	if ( is_string($screen) )

		$screen = convert_to_screen($screen);



	if ( !isset($_wp_contextual_help) )

		$_wp_contextual_help = array();



	$_wp_contextual_help[$screen->id] = $help;

}

341

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: