includes_url filter-hookWP 2.8.0

Filters the URL to the includes directory.

Usage

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(string)
The complete URL to the includes directory including scheme and path.
$path(string)
Path relative to the URL to the wp-includes directory. Blank string if no path is specified.
$scheme(string|null)
Scheme to give the includes URL context. Accepts 'http', 'https', 'relative', or null.
Default: null

Changelog

Since 2.8.0 Introduced.
Since 5.8.0 The $scheme parameter was added.

Where the hook is called

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

Where the hook is used in WordPress

Usage not found.