contextual_help хук-фильтр . WP 2.7.0
Запрещен (устарел) с версии 3.3.0. Больше не поддерживается и может быть удален. Используйте get_current_screen()->add_help_tab() or
get_current_screen()->remove_help_tab()
.
Deprecated: 3.3.0 Use get_current_screen()->add_help_tab() or
get_current_screen()->remove_help_tab() instead.
Filters the legacy contextual help text.
Использование
add_filter( 'contextual_help', 'filter_function_name_6736', 10, 3 ); function filter_function_name_6736( $old_help, $screen_id, $this ){ // filter... return $old_help; }
- $old_help(строка)
- Help text that appears on the screen.
- $screen_id(строка)
- Screen ID.
- $this(WP_Screen)
- Current WP_Screen instance.
Список изменений
С версии DEL 3.3.0 | Введена. |
Где вызывается хук
wp-admin/includes/class-wp-screen.php 793
$old_help = apply_filters( 'contextual_help', $old_help, $this->id, $this );