stylesheet_uri WordPress Filter Hook

The stylesheet_uri hook is used to register and enqueue a stylesheet. It allows for the stylesheet to be specified via a URL, instead of being hard-coded into the theme. This hook is typically used in the theme's header.php file.

apply_filters( 'stylesheet_uri', string $stylesheet_uri, string $stylesheet_dir_uri ) #

Filters the URI of the active theme stylesheet.


Parameters

$stylesheet_uri

(string)Stylesheet URI for the active theme/child theme.

$stylesheet_dir_uri

(string)Stylesheet directory URI for the active theme/child theme.


Top ↑

Source

File: wp-includes/theme.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
1.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More