stylesheet_directory хук-фильтрWP 1.5.0

Filters the stylesheet directory path for the active theme.

Использование

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(строка)
Absolute path to the active theme.
$stylesheet(строка)
Directory name of the active theme.
$theme_root(строка)
Absolute path to themes directory.

Список изменений

С версии 1.5.0 Введена.

Где вызывается хук

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

Где используется хук в WordPress

Использование не найдено.