wp_admin_css_uri хук-фильтрWP 2.3.0

Filters the URI of a WordPress admin CSS file.

Использование

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(строка)
Relative path to the file with query arguments attached.
$file(строка)
Relative path to the file, minus its ".css" extension.

Список изменений

С версии 2.3.0 Введена.

Где вызывается хук

wp_admin_css_uri()
wp_admin_css_uri
wp-includes/general-template.php 4585
return apply_filters( 'wp_admin_css_uri', $_file, $file );

Где используется хук в WordPress

Использование не найдено.