default_contextual_help
Устарел с версии 3.3.0. Больше не поддерживается и может быть удален. Смотрите
{@see get_current_screen()->add_help_tab()} or
{@see get_current_screen()->remove_help_tab()}.Filters the default legacy contextual help text.
Использование
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(строка)
- Default contextual help text.
- $string
- -
- $get_current_screen()->remove_help_tab()
- -
Список изменений
| С версии 2.8.0 | Введена. |
| Устарела с 3.3.0 | Use {@see get_current_screen()->add_help_tab()} or |
Где вызывается хук
wp-admin/includes/class-wp-screen.php 840-845
$default_help = apply_filters_deprecated( 'default_contextual_help', array( '' ), '3.3.0', 'get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab()' );