includes_url хук-фильтрWP 2.8.0

Filters the URL to the includes directory.

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

add_filter( 'includes_url', 'wp_kama_includes_url_filter', 10, 3 );

/**
 * Function for `includes_url` filter-hook.
 * 
 * @param string      $url    The complete URL to the includes directory including scheme and path.
 * @param string      $path   Path relative to the URL to the wp-includes directory. Blank string if no path is specified.
 * @param string|null $scheme Scheme to give the includes URL context. Accepts 'http', 'https', 'relative', or null.
 *
 * @return string
 */
function wp_kama_includes_url_filter( $url, $path, $scheme ){

	// filter...
	return $url;
}
$url(строка)
The complete URL to the includes directory including scheme and path.
$path(строка)
Path relative to the URL to the wp-includes directory. Blank string if no path is specified.
$scheme(строка|null)
Scheme to give the includes URL context. Accepts 'http', 'https', 'relative', or null.
По умолчанию: null

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

С версии 2.8.0 Введена.
С версии 5.8.0 The $scheme parameter was added.

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

includes_url()
includes_url
wp-includes/link-template.php 3518
return apply_filters( 'includes_url', $url, $path, $scheme );

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

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