stylesheet_directory_uri WordPress Filter Hook
The stylesheet_directory_uri hook allows you to change the stylesheet directory for your Wordpress site. This can be useful if you want to use a different stylesheet for your mobile site or if you want to change the stylesheet directory for your child theme.
apply_filters( 'stylesheet_directory_uri', string $stylesheet_dir_uri , string $stylesheet , string $theme_root_uri ) #
Filters the stylesheet directory URI.
Parameters
- $stylesheet_dir_uri
(string)Stylesheet directory URI.
- $stylesheet
(string)Name of the activated theme's directory.
- $theme_root_uri
(string)Themes root URI.
Source
File: wp-includes/theme.php
Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |