apply_filters( 'stylesheet_uri', string $stylesheet_uri, string $stylesheet_dir_uri )
- Since
- 1.5.0
Filters the URI of the active theme stylesheet.
Compatibility
- WordPress
- since 1.5.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$stylesheet_uristring- Stylesheet URI for the active theme/child theme.
$stylesheet_dir_uristring- Stylesheet directory URI for the active theme/child theme.
Where this hook fires · 1
wp-includes/theme.php:263get_stylesheet_uri()
Source code
* * @since 1.5.0 * * @param string $stylesheet_uri Stylesheet URI for the active theme/child theme. * @param string $stylesheet_dir_uri Stylesheet directory URI for the active theme/child theme. */ return apply_filters( 'stylesheet_uri', $stylesheet_uri, $stylesheet_dir_uri );} /** * Retrieves the localized stylesheet URI. * * The stylesheet directory for the localized stylesheet files are located, byChangelog
Introduced in 1.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.7.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.