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.
Source
Changelog
Version | Description |
---|---|
5.8.0 | The $scheme parameter was added. |
2.8.0 | Introduced. |