添加页面的上下文帮助文本。
原型
add_contextual_help( string $screen, string $help )
描述
创建“概述”帮助选项卡。
参考:
- WP_Screen::add_help_tab()
参数
$screen
(string)
(Required)
屏幕的句柄添加帮助。这通常是add _ * _ page()函数返回的钩子名称。
$help
(string)
(Required)
“概述”帮助标签的内容。
源文件
路径:wp-admin/includes/deprecated.php
<?php
...
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 );
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/add_contextual_help/