includes_url WordPress Filter Hook

This hook is used to retrieve the URL of the includes directory. This can be useful for plugins and themes that need to reference files located in the includes directory.

apply_filters( 'includes_url', string $url, string $path, string|null $scheme ) #

Filters the URL to the includes directory.


Parameters

$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.


Top ↑

Source

File: wp-includes/link-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.8.0The $scheme parameter was added.
2.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More