Function Reference: geodir_plugin_path

Summary

Return the plugin path.

Description

Return the plugin folder path WITHOUT TRAILING SLASH.

Package

GeoDirectory

Return Values

(string)
  • example url eg: /home/geo/public_html/wp-content/plugins/geodirectory.

Change Log

Since: 1.0.0

Source File

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

Source Code

function geodir_plugin_path() {
	if ( defined( 'GD_TESTING_MODE' ) && GD_TESTING_MODE ) {
		return dirname( dirname( __FILE__ ) );
	} else {
		return WP_PLUGIN_DIR . "/" . plugin_basename( dirname( dirname( __FILE__ ) ) );
	}
}