get_stylesheet_uri()
最后更新于:2021-11-27 00:48:33
get_stylesheet_uri()Retrieves stylesheet URI for current theme.
响应
(string) URI to current theme’s stylesheet.
源文件
文件: gc-includes/theme.php
function get_stylesheet_uri() {
$stylesheet_dir_uri = get_stylesheet_directory_uri();
$stylesheet_uri = $stylesheet_dir_uri . '/style.css';
/**
* Filters the URI of the current theme stylesheet.
*
* @since 1.5.0
*
* @param string $stylesheet_uri Stylesheet URI for the current theme/child theme.
* @param string $stylesheet_dir_uri Stylesheet directory URI for the current theme/child theme.
*/
return apply_filters( 'stylesheet_uri', $stylesheet_uri, $stylesheet_dir_uri );
}