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.


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