add_contextual_help()
Устарела с версии 3.3.0. Больше не поддерживается и может быть удалена. Используйте WP_Screen::add_help_tab().
Add contextual help text for a page.
Creates an 'Overview' help tab.
Хуков нет.
Возвращает
null. Ничего (null).
Использование
add_contextual_help( $screen, $help );
- $screen(строка) (обязательный)
- The handle for the screen to add help to. This is usually the hook name returned by the
add_*_page()functions. - $help(строка) (обязательный)
- The content of an
'Overview'help tab.
Заметки
| Смотрите: WP_Screen::add_help_tab() |
Список изменений
| С версии 2.7.0 | Введена. |
| Устарела с 3.3.0 | Use WP_Screen::add_help_tab() |
Код add_contextual_help() add contextual help WP 7.1.4
function add_contextual_help( $screen, $help ) {
_deprecated_function( __FUNCTION__, '3.3.0', 'get_current_screen()->add_help_tab()' );
if ( is_string( $screen ) )
$screen = convert_to_screen( $screen );
WP_Screen::add_old_compat_help( $screen, $help );
}