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

Filters the URI of the active theme stylesheet.

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

add_filter( 'stylesheet_uri', 'wp_kama_stylesheet_uri_filter', 10, 2 );

/**
 * Function for `stylesheet_uri` filter-hook.
 * 
 * @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 string
 */
function wp_kama_stylesheet_uri_filter( $stylesheet_uri, $stylesheet_dir_uri ){

	// filter...
	return $stylesheet_uri;
}
$stylesheet_uri(строка)
Stylesheet URI for the active theme/child theme.
$stylesheet_dir_uri(строка)
Stylesheet directory URI for the active theme/child theme.

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

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

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

get_stylesheet_uri()
stylesheet_uri
wp-includes/theme.php 257
return apply_filters( 'stylesheet_uri', $stylesheet_uri, $stylesheet_dir_uri );

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

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