default_contextual_help
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 default legacy contextual help text.
Usage
add_filter( 'default_contextual_help', 'wp_kama_default_contextual_help_filter', 10, 3 ); /** * Function for `default_contextual_help` filter-hook. * * @param string $old_help_default Default contextual help text. * @param $string * @param $get_current_screen()->remove_help_tab() * * @return string */ function wp_kama_default_contextual_help_filter( $old_help_default, $string, $get_current_screen()->remove_help_tab() ){ // filter... return $old_help_default; }
- $old_help_default(string)
- Default contextual help text.
- $string
- -
- $get_current_screen()->remove_help_tab()
- -
Changelog
Since 2.8.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 841-846
$default_help = apply_filters_deprecated( 'default_contextual_help', array( '' ), '3.3.0', 'get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab()' );