plugins_url WordPress Filter Hook

The plugins_url hook is used to retrieve the URL of a plugin. This can be used to provide links to resources or files included with a plugin.

apply_filters( 'plugins_url', string $url, string $path, string $plugin ) #

Filters the URL to the plugins directory.


Parameters

$url

(string)The complete URL to the plugins directory including scheme and path.

$path

(string)Path relative to the URL to the plugins directory. Blank string if no path is specified.

$plugin

(string)The plugin file path to be relative to. Blank string if no plugin is specified.


Top ↑

Source

File: wp-includes/link-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More