stylesheet_directory filter-hookWP 1.5.0

Filters the stylesheet directory path for the active theme.

Usage

add_filter( 'stylesheet_directory', 'wp_kama_stylesheet_directory_filter', 10, 3 );

/**
 * Function for `stylesheet_directory` filter-hook.
 * 
 * @param string $stylesheet_dir Absolute path to the active theme.
 * @param string $stylesheet     Directory name of the active theme.
 * @param string $theme_root     Absolute path to themes directory.
 *
 * @return string
 */
function wp_kama_stylesheet_directory_filter( $stylesheet_dir, $stylesheet, $theme_root ){

	// filter...
	return $stylesheet_dir;
}
$stylesheet_dir(string)
Absolute path to the active theme.
$stylesheet(string)
Directory name of the active theme.
$theme_root(string)
Absolute path to themes directory.

Changelog

Since 1.5.0 Introduced.

Where the hook is called

get_stylesheet_directory()
stylesheet_directory
wp-includes/theme.php 215
return apply_filters( 'stylesheet_directory', $stylesheet_dir, $stylesheet, $theme_root );

Where the hook is used in WordPress

Usage not found.