wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



show_admin_bar › Filtr WordPress Hooks

Od3.1.0
Przestarzałyn/a
› apply_filters( 'show_admin_bar', $show_admin_bar )
Parametry:
  • () show_admin_bar Whether the admin bar should be shown. Default false.
    Wymagane: Tak
Zdefiniowane na:
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.




Źródło

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