WordPress at a glance

get_stylesheet_uri() WP 1.0

Retrieves the URI of current theme stylesheet.

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

✈ 1 time = 0.000039s = very fast | 50000 times = 0.78s = very fast PHP 7.0.2, WP 4.4.2
Hooks from function:
Return

String.

Usage

get_stylesheet_uri();

Code of get_stylesheet_uri: wp-includes/theme.php VER 4.9.8

<?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 );
}

Related Functions

From tag: Link (URL)

More from category: Theme files connection

No comments
    Hello, !     Log In . Register