add: started with context help system
Dieser Commit ist enthalten in:
Ursprung
f73fccd78d
Commit
8913b0be76
4 geänderte Dateien mit 145 neuen und 0 gelöschten Zeilen
14
trunk/includes/help/v32/sample.php
Normale Datei
14
trunk/includes/help/v32/sample.php
Normale Datei
|
|
@ -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);
|
||||
?>
|
||||
4
trunk/includes/help/v32/statz.tpl
Normale Datei
4
trunk/includes/help/v32/statz.tpl
Normale Datei
|
|
@ -0,0 +1,4 @@
|
|||
<div>
|
||||
<h3>Semmelstatz Help</h3>
|
||||
<p>Here we have to write some context help for semmelstatzR. :)</p>
|
||||
</div>
|
||||
Laden …
Tabelle hinzufügen
Einen Link hinzufügen
In neuem Issue referenzieren