[wp-trac] [WordPress Trac] #23687: Filter Contextual Help Label

WordPress Trac noreply at wordpress.org
Mon Mar 4 11:54:04 UTC 2013


#23687: Filter Contextual Help Label
-------------------------------------+--------------------------
 Reporter:  dgwyer                   |       Type:  enhancement
   Status:  new                      |   Priority:  normal
Milestone:  Awaiting Review          |  Component:  Text Changes
  Version:  trunk                    |   Severity:  normal
 Keywords:  has-patch needs-testing  |
-------------------------------------+--------------------------
 The contextual help feature is a great way to add help to themes and
 Plugins. However, we often find that our theme/Plugin users do not even
 notice the generic 'Help' button on the top right of the admin screen.

 It would be useful to be able to customise this label to include the
 theme/Plugin name so users know this is help specific to that theme/Plugin
 and not just WordPress generated help.

 Currently there is no way to filter the help label. It is fixed to 'Help'.
 I have included a patch that allows you to filter it to display your own
 custom help label such as 'Plugin Help', 'Theme Help' etc.

 Usage is then:

 {{{
 function custom_label($label, $screen_id){

         global $options_page_id;

         if ($screen_id == $options_page_id)
                 $label = __( 'Plugin Help' );

         return $label;
 }
 add_filter('contextual_help_label', 'custom_label', 10, 2);
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23687>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list