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

Filters the URL to the content directory.

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

add_filter( 'content_url', 'wp_kama_content_url_filter', 10, 2 );

/**
 * Function for `content_url` filter-hook.
 * 
 * @param string $url  The complete URL to the content directory including scheme and path.
 * @param string $path Path relative to the URL to the content directory. Blank string if no path is specified.
 *
 * @return string
 */
function wp_kama_content_url_filter( $url, $path ){

	// filter...
	return $url;
}
$url(строка)
The complete URL to the content directory including scheme and path.
$path(строка)
Path relative to the URL to the content directory. Blank string if no path is specified.

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

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

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

content_url()
content_url
wp-includes/link-template.php 3658
return apply_filters( 'content_url', $url, $path );

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

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