WordPress.org

Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#16257 closed defect (bug) (worksforme)

Contextual help for plugin

Reported by: frankpw Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0.4
Component: Administration Keywords: close
Focuses: Cc:

Description

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.

Change History (2)

#1 @solarissmoke
10 years ago

  • Keywords close added; contextual_help removed

Just tested and I can't reproduce this in clean installs of 3.0.4 or trunk - maybe another plugin is messing?

#2 @nacin
10 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.