On this page
apply_filters( 'plugins_url', string $url, string $path, string $plugin )
Filters the URL to the plugins directory.
Parameters
$urlstring-
The complete URL to the plugins directory including scheme and path.
$pathstring-
Path relative to the URL to the plugins directory. Blank string if no path is specified.
$pluginstring-
The plugin file path to be relative to. Blank string if no plugin is specified.
Source
File: wp-includes/link-template.php. View all references
return apply_filters( 'plugins_url', $url, $path, $plugin );
Related
Used By
| Used By | Description |
|---|---|
| plugins_url() wp-includes/link-template.php | Retrieves a URL within the plugins or mu-plugins directory. |
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/plugins_url