Skip to content

Commit af95212

Browse files
author
remko janse
authored
Merge pull request #1 from WP4Laravel/feature/removing-legacy-notice
remove help tab
2 parents e68d167 + 0db9964 commit af95212

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ui/tabs.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
/*
1818
* Remove help tab.
1919
*/
20-
add_filter('contextual_help', function ($old_help, $screen_id, $screen) {
20+
add_action('admin_head', 'wp4laravel_remove_help_tabs');
21+
function wp4laravel_remove_help_tabs() {
22+
$screen = get_current_screen();
2123
$screen->remove_help_tabs();
22-
23-
return $old_help;
24-
}, 999, 3);
24+
}
2525
}
2626

2727
if (in_array('screen-options', reset($tabs))) {

0 commit comments

Comments
 (0)