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.
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'.
Source
Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |