contextual_help_list
Deprecated from version 3.3.0. It is no longer supported and can be removed in future releases. See
{@see get_current_screen()->add_help_tab()} or
{@see get_current_screen()->remove_help_tab()}
.Filters the legacy contextual help list.
Usage
add_filter( 'contextual_help_list', 'wp_kama_contextual_help_list_filter', 10, 4 ); /** * Function for `contextual_help_list` filter-hook. * * @param array $old_compat_help Old contextual help. * @param WP_Screen $screen Current WP_Screen instance. * @param $string * @param $get_current_screen()->remove_help_tab() * * @return array */ function wp_kama_contextual_help_list_filter( $old_compat_help, $screen, $string, $get_current_screen()->remove_help_tab() ){ // filter... return $old_compat_help; }
- $old_compat_help(array)
- Old contextual help.
- $screen(WP_Screen)
- Current WP_Screen instance.
- $string
- -
- $get_current_screen()->remove_help_tab()
- -
Changelog
Since 2.7.0 | Introduced. |
Deprecated since 3.3.0 | Use {@see get_current_screen()->add_help_tab()} or |
Where the hook is called
wp-admin/includes/class-wp-screen.php 802-807
self::$_old_compat_help = apply_filters_deprecated( 'contextual_help_list', array( self::$_old_compat_help, $this ), '3.3.0', 'get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab()' );