Title: plugins_url
Published: April 25, 2014
Last modified: May 20, 2026

---

# apply_filters( ‘plugins_url’, string $url, string $path, string $plugin )

## In this article

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

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

Filters the URL to the plugins directory.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/plugins_url/?output_format=md#parameters)󠁿

 `$url`string

The complete URL to the plugins directory including scheme and path.

`$path`string

Path relative to the URL to the plugins directory. Blank string if no path is specified.

`$plugin`string

The plugin file path to be relative to. Blank string if no plugin is specified.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/plugins_url/?output_format=md#source)󠁿

    ```php
    return apply_filters( 'plugins_url', $url, $path, $plugin );
    ```

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

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

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

Retrieves a URL within the plugins or mu-plugins directory.

  |

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

| Version | Description | 
| [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%2Fplugins_url%2F)
before being able to contribute a note or feedback.