apply_filters( 'show_admin_bar', bool $show_admin_bar )

Filters whether to show the admin bar.


Description

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.


Parameters

$show_admin_bar

(bool) Whether the admin bar should be shown. Default false.


Source

File: wp-includes/admin-bar.php

View on GitHub



Changelog

Changelog
Version Description
WP-3.1.0 Introduced.