Title: includes_url
Published: April 25, 2014
Last modified: February 24, 2026

---

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

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/includes_url/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/includes_url/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/includes_url/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/includes_url/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/includes_url/?output_format=md#wp--skip-link--target)

Filters the URL to the includes directory.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/includes_url/?output_format=md#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](https://developer.wordpress.org/reference/hooks/includes_url/?output_format=md#source)󠁿

    ```php
    return apply_filters( 'includes_url', $url, $path, $scheme );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/link-template.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/link-template.php#L3640)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/link-template.php#L3640-L3640)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/includes_url/?output_format=md#related)󠁿

| Used by | Description | 
| [includes_url()](https://developer.wordpress.org/reference/functions/includes_url/)`wp-includes/link-template.php` |

Retrieves the URL to the includes directory.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/includes_url/?output_format=md#changelog)󠁿

| Version | Description | 
| [5.8.0](https://developer.wordpress.org/reference/since/5.8.0/) | The `$scheme` parameter was added. | 
| [2.8.0](https://developer.wordpress.org/reference/since/2.8.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fincludes_url%2F)
before being able to contribute a note or feedback.