wp_admin_bar_class WordPress Filter Hook

The wp_admin_bar_class is a WordPress hook that allows you to add a custom class to the WordPress admin bar. This can be useful if you want to style the admin bar differently than the default WordPress styling.

apply_filters( 'wp_admin_bar_class', string $wp_admin_bar_class ) #

Filters the admin bar class to instantiate.


Parameters

$wp_admin_bar_class

(string)Admin bar class to use. Default 'WP_Admin_Bar'.


Top ↑

Source

File: wp-includes/admin-bar.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.