wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



show_admin_bar › WordPress Filter Hooks

Seit3.1.0
Veraltetn/v
apply_filters( 'show_admin_bar', $show_admin_bar )
Parameter:
  • (bool) $show_admin_bar Whether the admin bar should be shown. Default false.
    Erforderlich: Ja
Definiert in:
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.





Quellcode

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