convert_to_screen()
convert_to_screen( string $hook_name )
将屏幕字符串转换为屏幕对象
Convert a screen string to a screen object
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$hook_name | (string) | 必需 | 用于确定屏幕的挂钩名称(也称为挂钩后缀)。 |
返回(Return)
(WP_Screen)屏幕对象。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
3.0.0 | wp-admin/includes/template.php:2464 | 12 | 3 |
convert_to_screen() 为WP2原创文章,链接:https://www.wp2.cn/functions/convert_to_screen/