set_current_screen() - WordPress 函数参考中文文档

返回介绍

set_current_screen()

发布于 2017-09-11 字数 1376 浏览 976 评论 0

set_current_screen( mixed $hook_name = '' )

Set the current screen object


描述


参数

$hook_name

(mixed)
(Optional)
The hook name (also known as the hook suffix) used to determine the screen, or an existing screen object.

Default value: ”


源代码

File: wp-admin/includes/screen.php

function set_current_screen( $hook_name = '' ) {
	WP_Screen::get( $hook_name )->set_current_screen();
}

更新日志

Version 描述
3.0.0 Introduced.

相关函数

Uses

  • wp-admin/includes/class-wp-screen.php:
    WP_Screen::get()

Used By

  • wp-admin/includes/ajax-actions.php:
    wp_ajax_search_install_plugins()
  • wp-admin/includes/ajax-actions.php:
    wp_ajax_search_plugins()
  • wp-admin/includes/ajax-actions.php:
    wp_ajax_dashboard_widgets()

User Contributed Notes

上一篇:setup_userdata()

下一篇:set_current_user()

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!