wpseek.com
WordPress开发者和主题制作者的搜索引擎



show_admin_bar › WordPress过滤钩子

Since3.1.0
已弃用n/a
apply_filters( 'show_admin_bar', $show_admin_bar )
参数:
  • (bool) $show_admin_bar Whether the admin bar should be shown. Default false.
    Required: Yes
定义在:
文档:

Filters whether to show the admin bar.

Returning false to this hook is the recommended way to hide the admin bar. The user's display preference is used for logged in users.





源码

$show_admin_bar = apply_filters( 'show_admin_bar', $show_admin_bar );