plugins_url
plugins_url ( $path = '', $plugin = '' )
Parameters:- (string) path Optional. Extra path appended to the end of the URL, including the relative directory if $plugin is supplied. Default empty.
- (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.
Returns:- (string) Plugins URL link with optional paths appended.
Defined at: - Introduced in WordPress: 2.6.0
- Deprecated in WordPress: —
Description
Retrieves a URL within the plugins or mu-plugins directory.Defaults to the plugins directory URL if no arguments are supplied.