A WordPress-centric search engine for devs and theme authors



show_admin_bar ›

Since3.1.0
Deprecatedn/a
apply_filters( 'show_admin_bar', $show_admin_bar )
Parameters:
  • (bool) $show_admin_bar Whether the admin bar should be shown. Default false.
    Required: Yes
Defined at:
Codex:

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.





Source

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