wp_admin_css filter-hook . WP 2.3.0
Filters the stylesheet link to the specified CSS file.
If the site is set to display right-to-left, the RTL stylesheet link will be used instead.
Usage
add_filter( 'wp_admin_css', 'filter_function_name_4093', 10, 2 ); function filter_function_name_4093( $stylesheet_link, $file ){ // filter... return $stylesheet_link; }
- $stylesheet_link(string)
- HTML link element for the stylesheet.
- $file(string)
- Style handle name or filename (without ".css" extension) relative to wp-admin/.
Default: 'wp-admin'
Changelog
Since 2.3.0 | Introduced. |
Where the hook is called
wp_admin_css
wp-includes/general-template.php 4608
echo apply_filters( 'wp_admin_css', $stylesheet_link, $file );
wp-includes/general-template.php 4617
echo apply_filters( 'wp_admin_css', $rtl_stylesheet_link, "$file-rtl" );