wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



plugin_dir_url › WordPress Function

Depuis2.8.0
Dépréciéen/a
plugin_dir_url ( $file )
Paramètres:
  • (string) $file The filename of the plugin (__FILE__).
    Requis: Oui
Retourne:
  • (string) the URL path of the directory that contains the plugin.
Défini(e) dans:
Codex:

Get the URL directory path (with trailing slash) for the plugin __FILE__ passed in.



Source

function plugin_dir_url( $file ) {
	return trailingslashit( plugins_url( '', $file ) );
}