Filter hook 'show_admin_bar'

in WP Core File wp-includes/admin-bar.php at line 1380

Description

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.

Occurrences

Filename Line Number
wp-includes/admin-bar.php 1380

Parameters

Type Name Description
bool $show_admin_bar Whether the admin bar should be shown. Default false.

PHP Doc

/**
	 * 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.
	 *
	 * @since 3.1.0
	 *
	 * @param bool $show_admin_bar Whether the admin bar should be shown. Default false.
	 */