content_url

Advertisement

Summery Summery

Retrieves the URL to the content directory.

Syntax Syntax

content_url( string $path = '' )

Parameters Parameters

$path

(Optional) Path relative to the content URL.

Default value: ''

Return Return

(string) Content URL link with optional path appended.

Source Source

File: wp-includes/link-template.php

	 * Filters the URL to the includes directory.
	 *
	 * @since 2.8.0
	 *
	 * @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.
	 */
	return apply_filters( 'includes_url', $url, $path );
}

/**
 * Retrieves the URL to the content directory.
 *
 * @since 2.6.0
 *
 * @param string $path Optional. Path relative to the content URL. Default empty.
 * @return string Content URL link with optional path appended.

Advertisement

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Advertisement

Leave a Reply