[wp-trac] [WordPress Trac] #16257: Contextual help for plugin

WordPress Trac wp-trac at lists.automattic.com
Sun Jan 16 02:20:42 UTC 2011


#16257: Contextual help for plugin
----------------------------+-----------------------------
 Reporter:  frankpw         |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  3.0.4
 Severity:  normal          |   Keywords:  contextual_help
----------------------------+-----------------------------
 Contextual help never shows unless I echo it in my added filter.

 Excerpt from my plugin:

 add_filter('contextual_help', 'fpw_cat_thumbs_help', 10, 3);

 function fpw_cat_thumbs_help($contextual_help, $screen_id, $screen) {
     global $fpw_cat_thumbs_hook;

     if ($screen_id == $fpw_cat_thumbs_hook) {
         $contextual_help = 'My help goes here...';
     }
     return $contextual_help;
 }

 That does not work!

 function fpw_cat_thumbs_help($contextual_help, $screen_id, $screen) {
     global $fpw_cat_thumbs_hook;

     if ($screen_id == $fpw_cat_thumbs_hook) {

         $contextual_help = 'My help goes here...';

         echo $contextual_help;

     }

     return $contextual_help;

 }

 That works.

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


More information about the wp-trac mailing list