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.
Source
File: wp-includes/theme.php
Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |