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:

Description

Retrieves a URL within the plugins or mu-plugins directory.Defaults to the plugins directory URL if no arguments are supplied.

Related Functions

plugin_dir_url, wp_login_url, plugins_api, get_plugins, plugin_dir_path

Top Google Results

User discussions

wpseek mobile