lib/LocationManager.php
public static function get_calling_script_dir( $offset = 0 ) {
		$caller = self::get_calling_script_file($offset);
		if ( !is_null($caller) ) {
			$pathinfo = pathinfo($caller);
			$dir = $pathinfo['dirname'];
			return $dir;
		}
	}
public static function get_calling_script_dir( $offset = 0 ) {
		$caller = self::get_calling_script_file($offset);
		if ( !is_null($caller) ) {
			$pathinfo = pathinfo($caller);
			$dir = $pathinfo['dirname'];
			return $dir;
		}
	}
public static function get_calling_script_dir ( $ offset = 0 ) { $ caller = self :: get_calling_script_file ( $ offset ) ; if ( ! is_null ( $ caller ) ) { $ pathinfo = pathinfo ( $ caller ) ; $ dir = $ pathinfo [ 'dirname' ] ; return $ dir ; } }
Get calling script dir.
@api
@return string
Get calling script dir .