current_screen
do_action( ‘current_screen’, WP_Screen $current_screen )
动作钩子::在设置当前屏幕后触发。
Action Hook: Fires after the current screen has been set.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$current_screen | (WP_Screen) | 当前WP_屏幕对象。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
3.0.0 | wp-admin/includes/class-wp-screen.php:421 | 1 | 0 |
笔记(Notes)
从Widgets管理页面隐藏所需的侧边栏区域。
current_screen 为WP2原创文章,链接:https://www.wp2.cn/hook/current_screen/