Filter hook 'wp_admin_css_uri'

in WP Core File wp-includes/general-template.php at line 5000

View Source

wp_admin_css_uri

Filter Hook
Description
Filters the URI of a WordPress admin CSS file.

Hook Information

File Location wp-includes/general-template.php View on GitHub
Hook Type Filter
Line Number 5000

Hook Parameters

Type Name Description
string $_file Relative path to the file with query arguments attached.
string $file Relative path to the file, minus its ".css" extension.

Usage Examples

Basic Usage
<?php
// Hook into wp_admin_css_uri
add_filter('wp_admin_css_uri', 'my_custom_filter', 10, 2);

function my_custom_filter($_file, $file) {
    // Your custom filtering logic here
    return $_file;
}

Source Code Context

wp-includes/general-template.php:5000 - How this hook is used in WordPress core
<?php
4995  	 * @since 2.3.0
4996  	 *
4997  	 * @param string $_file Relative path to the file with query arguments attached.
4998  	 * @param string $file  Relative path to the file, minus its ".css" extension.
4999  	 */
5000  	return apply_filters( 'wp_admin_css_uri', $_file, $file );
5001  }
5002  
5003  /**
5004   * Enqueues or directly prints a stylesheet link to the specified CSS file.
5005   *

PHP Documentation

<?php
/**
	 * 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.
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 2
  • File: wp-includes/general-template.php
Related Hooks

Related hooks will be displayed here in future updates.