wp_admin_css WordPress Filter Hook

This hook is used to add custom CSS to the WordPress admin area. This is useful if you need to make changes to the admin area that can't be made with the built-in WordPress CSS.

apply_filters( 'wp_admin_css', string $stylesheet_link, string $file ) #

Filters the stylesheet link to the specified CSS file.


Description

If the site is set to display right-to-left, the RTL stylesheet link will be used instead.


Top ↑

Parameters

$stylesheet_link

(string)HTML link element for the stylesheet.

$file

(string)Style handle name or filename (without ".css" extension) relative to wp-admin/. Defaults to 'wp-admin'.


Top ↑

Source

File: wp-includes/general-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.3.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.

Show More
Show More