WordPress at Your Fingertips
function is not described

WP_Filesystem_Base::get_base_dir() public WP 2.5.0

Deprecated from version 2.7.0. It is no longer supported and can be removed in future releases. Use WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir() methods instead.

Locates a folder on the remote filesystem.

{} It's a method of the class: WP_Filesystem_Base{}

No Hooks.

Return

String. The location of the remote path.

Usage

$WP_Filesystem_Base = new WP_Filesystem_Base();
$WP_Filesystem_Base->get_base_dir( $base, $echo );
$base(string)
The folder to start searching from.
Default: '.'
$echo(true|false)
True to display debug information.
Default: false

Notes

Changelog

Since 2.5.0 Introduced.
Deprecated Since 2.7.0 use WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir() methods instead.

Code of WP_Filesystem_Base::get_base_dir() WP 5.8.2

public function get_base_dir( $base = '.', $echo = false ) {
	_deprecated_function( __FUNCTION__, '2.7.0', 'WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir()' );
	$this->verbose = $echo;
	return $this->abspath();
}