wp_admin_css_uri
Filters the URI of a WordPress admin CSS file.
Usage
add_filter( 'wp_admin_css_uri', 'wp_kama_admin_css_uri_filter', 10, 2 );
/**
* Function for `wp_admin_css_uri` filter-hook.
*
* @param string $_file Relative path to the file with query arguments attached.
* @param string $file Relative path to the file, minus its ".css" extension.
*
* @return string
*/
function wp_kama_admin_css_uri_filter( $_file, $file ){
// filter...
return $_file;
}
- $_file(string)
- Relative path to the file with query arguments attached.
- $file(string)
- Relative path to the file, minus its ".css" extension.
Changelog
| Since 2.3.0 | Introduced. |
Where the hook is called
wp_admin_css_uri
wp-includes/general-template.php 5014
return apply_filters( 'wp_admin_css_uri', $_file, $file );