get_stylesheet_uri()

Retrieves stylesheet URI for current theme.

Description

The stylesheet file name is ‘style.css’ which is appended to the stylesheet directory URI path. See get_stylesheet_directory_uri().

Return

(string) URI to current theme's stylesheet.

More Information

Returns URL of current theme stylesheet.

Source

File: wp-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 );
}

Changelog

Version Description
1.5.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_stylesheet_uri