wp_admin_css_uri

The timeline below displays how wordpress function wp_admin_css_uri has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.1

/**
 * Displays the URL of a WordPress admin CSS file.
 *
 * @see WP_Styles::_css_href() and its {@see 'style_loader_src'} filter.
 *
 * @since 2.3.0
 *
 * @param string $file file relative to wp-admin/ without its ".css" extension.
 * @return string
 */
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 WordPress admin CSS file.
     *
     * @since 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);
}

WordPress Version: 4.6

/**
 * Displays the URL of a WordPress admin CSS file.
 *
 * @see WP_Styles::_css_href and its {@see 'style_loader_src'} filter.
 *
 * @since 2.3.0
 *
 * @param string $file file relative to wp-admin/ without its ".css" extension.
 * @return string
 */
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 WordPress admin CSS file.
     *
     * @since 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);
}

WordPress Version: 4.3

/**
 * Display the URL of a WordPress admin CSS file.
 *
 * @see WP_Styles::_css_href and its style_loader_src filter.
 *
 * @since 2.3.0
 *
 * @param string $file file relative to wp-admin/ without its ".css" extension.
 * @return string
 */
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);
    /**
     * Filter the URI of a WordPress admin CSS file.
     *
     * @since 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);
}

WordPress Version: 3.9

/**
 * Display the URL of a WordPress admin CSS file.
 *
 * @see WP_Styles::_css_href and its style_loader_src filter.
 *
 * @since 2.3.0
 *
 * @param string $file file relative to wp-admin/ without its ".css" extension.
 */
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);
    /**
     * Filter the URI of a WordPress admin CSS file.
     *
     * @since 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);
}

WordPress Version: 3.7

/**
 * Display the URL of a WordPress admin CSS file.
 *
 * @see WP_Styles::_css_href and its style_loader_src filter.
 *
 * @since 2.3.0
 *
 * @param string $file file relative to wp-admin/ without its ".css" extension.
 */
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);
}