wp_admin_css_uri()
Displays the URL of a WordPress admin CSS file.
Хуки из функции
Возвращает
Строку
.
Использование
wp_admin_css_uri( $file );
- $file(строка)
- file relative to wp-admin/ without its ".css" extension.
По умолчанию: 'wp-admin'
Заметки
- Смотрите: WP_Styles::_css_href() and its style_loader_src filter.
Список изменений
С версии 2.3.0 | Введена. |
Код wp_admin_css_uri() wp admin css uri WP 6.6.1
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 ); }