wp_admin_css_uri( string $file = 'wp-admin' )

Displays the URL of a ClassicPress admin CSS file.


Description

See also


Parameters

$file

(Optional) file relative to wp-admin/ without its ".css" extension.

Default value: 'wp-admin'


Return

(string)


Source

File: wp-includes/general-template.php

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 );

	/**
	 * Filters the URI of a ClassicPress admin CSS file.
	 *
	 * @since WP-2.3.0
	 *
	 * @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 apply_filters( 'wp_admin_css_uri', $_file, $file );
}


Changelog

Changelog
Version Description
WP-2.3.0 Introduced.