show_admin_bar

Advertisement

Summery Summery

Filters whether to show the admin bar.

Syntax Syntax

apply_filters( 'show_admin_bar', bool $show_admin_bar )

Description 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 Parameters

$show_admin_bar

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

Source Source

File: wp-includes/admin-bar.php

Advertisement

Changelog Changelog

Changelog
Version Description
3.1.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.