Codex

Function Reference/plugin dir url

Contents

Description

Gets the URL (with trailing slash) for the plugin __FILE__ passed in

Usage

<?php plugin_dir_url$file ); ?>

Parameters

$file
(string) (required) The filename of the plugin (__FILE__)
Default: None

Return Values

(string) 
The URL of the directory that contains the plugin, including a trailing slash ("/")

Change Log

Since: 2.8

Source File

plugin_dir_url() is located in wp-includes/plugin.php

Related

plugins_url(), plugin_dir_url(), plugin_dir_path()