[wp-hackers] contextual_help - understand i this correctly?
Frank Bueltge
frank at bueltge.de
Tue Nov 18 19:31:40 GMT 2008
I play with the new help in 2.7
Is my code correctly, i have write my appreciation on the syntax
THX for your time and help!
// filter for help over all pages in admin?
add_filter( 'contextual_help_link', array($this, 'contextual_help_link') );
function contextual_help() {
$contextual_help .= __('test', 'my_plugin');
echo $contextual_help;
}
// help-content for the different pages?
add_filter( 'contextual_help', array($this, 'contextual_help') );
function contextual_help() {
$contextual_help .= '<div class="metabox-prefs">'; // is this important?
$contextual_help .= __('test', 'my_plugin');
$contextual_help .= "</div>\n";
echo $contextual_help;
}
More information about the wp-hackers
mailing list