Core Function
View Source on Trac ↗ plugins_url()
plugins_url( mixed $path = '', mixed $plugin = '' ) Retrieves a URL within the plugins or mu-plugins directory.
Parameters 2 required
| Name / Type | Description |
|---|---|
| string | $path Optional. Extra path appended to the end of the URL, including the relative directory if $plugin is supplied. Default empty. Required |
| string | $plugin Optional. A full path to a file inside a plugin or mu-plugin. The URL will be relative to its directory. Default empty. Typically this is done by passing `__FILE__` as the argument. Required |
Return Value
(string)
Plugins URL link with optional paths appended.
Function Information
Since Version
2.6.0
Source File
wp-includes/link-template.php
Advertisement