plugins_url

SummerySummery

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

Syntax

plugins_url( string $path = '', string $plugin = '' )

DescriptionDescription

Defaults to the plugins directory URL if no arguments are supplied.

ParametersParameters

$path

(string) (Optional) Extra path appended to the end of the URL, including the relative directory if $plugin is supplied.

Default value: ''

$plugin

(string) (Optional) A full path to a file inside a plugin or mu-plugin. The URL will be relative to its directory. Typically this is done by passing __FILE__ as the argument.

Default value: ''

ReturnReturn

(string) Plugins URL link with optional paths appended.

SourceSource

File: wp-includes/link-template.php


			

ChangelogChangelog

Changelog
Version Description
2.6.0 Introduced.
Scroll to Top