includes_url

Advertisement

Summery Summery

Retrieves the URL to the includes directory.

Syntax Syntax

includes_url( string $path = '', string $scheme = null )

Parameters Parameters

$path

(Optional) Path relative to the includes URL.

Default value: ''

$scheme

(Optional) Scheme to give the includes URL context. Accepts 'http', 'https', or 'relative'.

Default value: null

Return Return

(string) Includes URL link with optional path appended.

Source Source

File: wp-includes/link-template.php

	 * @since 2.8.0
	 *
	 * @param string   $url     The complete admin area URL including scheme and path.
	 * @param string   $path    Path relative to the admin area URL. Blank string if no path is specified.
	 * @param int|null $blog_id Site ID, or null for the current site.
	 */
	return apply_filters( 'admin_url', $url, $path, $blog_id );
}

/**
 * Retrieves the URL to the includes directory.
 *
 * @since 2.6.0
 *
 * @param string $path   Optional. Path relative to the includes URL. Default empty.
 * @param string $scheme Optional. Scheme to give the includes URL context. Accepts
 *                       'http', 'https', or 'relative'. Default null.
 * @return string Includes URL link with optional path appended.

Advertisement

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Advertisement

Leave a Reply