function wp_admin_css_uri( $file = 'wp-admin' ) {}

Display the URL of a WordPress admin CSS file.


  • string $file: file relative to wp-admin/ without its “.css” extension.

Defined filters

  • wp_admin_css_uri
    apply_filters( 'wp_admin_css_uri', $_file, $file )

Source code

function wp_admin_css_uri( $file = 'wp-admin' ) {

	if ( defined('WP_INSTALLING') ) {

		$_file = "./$file.css";

	} else {

		$_file = admin_url("$file.css");


	$_file = add_query_arg( 'version', get_bloginfo( 'version' ),  $_file );

	return apply_filters( 'wp_admin_css_uri', $_file, $file );



No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: