Function Reference: geodir_plugin_url

Summary

Return the plugin url.

Description

Return the plugin folder url WITHOUT TRAILING SLASH.

Package

GeoDirectory

Return Values

(string)
  • example url eg: http://wpgeo.
  • directory/wp-content/plugins/geodirectory.

Change Log

Since: 1.0.0

1.6.18 Fix: GD Booster causes problem when used http in urls on SSL enabled site.

Source File

geodir_plugin_url() is located in geodirectory-functions/general_functions.php [Line: 29]

Source Code

function geodir_plugin_url() {
	return plugins_url( '', dirname( __FILE__ ) );
	/*
	if ( is_ssl() ) :
		return str_replace( 'http://', 'https://', WP_PLUGIN_URL ) . "/" . plugin_basename( dirname( dirname( __FILE__ ) ) );
	else :
		return WP_PLUGIN_URL . "/" . plugin_basename( dirname( dirname( __FILE__ ) ) );
	endif;
	*/
}