1
0
Fork 0

add: started with context help system

Dieser Commit ist enthalten in:
oldperl 2011-11-15 16:43:23 +00:00
Ursprung f73fccd78d
Commit 8913b0be76
4 geänderte Dateien mit 145 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -0,0 +1,14 @@
<?php
function semmelstatzR_contextual_help($contextual_help, $screen_id, $screen) {
// replace edit with the base of the page you're adding the help info to
if (strcmp($screen->base, 'semmelstatzR/semmelstatzR-statz') == 0 ) {
$customized_help = $contextual_help . 'Here is some very useful information...';
return $customized_help;
}
// Let the default WP Dashboard help stuff through on other Admin pages
return $contextual_help;
}
add_action('contextual_help', 'semmelstatzR_contextual_help', 10, 3);
?>

Datei anzeigen

@ -0,0 +1,4 @@
<div>
<h3>Semmelstatz Help</h3>
<p>Here we have to write some context help for semmelstatzR. :)</p>
</div>