хук-фильтр
Устаревший since 2.7.0
contextual_help
Устаревшее.
Помечено устаревшим с версии 3.3.0.
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
apply_filters_deprecated( 'contextual_help', string $old_help, string $screen_id, WP_Screen $screen )
Описание
Фильтрует устаревший текст контекстной справки.
Фильтруемое значение
Текст справки, отображаемый на экране.
Параметры
$old_help
string
обязательный
Текст справки, отображаемый на экране.
$screen_id
string
обязательный
Идентификатор экрана.
$screen
WP_Screen
обязательный
Текущий экземпляр WP_Screen.
Исходный код
wp-admin/includes/class-wp-screen.php:821
$old_help = apply_filters_deprecated(
'contextual_help',
array( $old_help, $this->id, $this ),
'3.3.0',
'get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab()'
);
История изменений
| Версия | Описание |
|---|---|
| 3.3.0 | Deprecated. Use get_current_screen()->add_help_tab() or get_current_screen()->remove_help_tab() instead. |
| 2.7.0 | Introduced. |

