WP_Filesystem_Base::get_base_dir()publicWP 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.

Метод класса: 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, $verbose );
$base(string)
The folder to start searching from.
Default: '.'
$verbose(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.

Код WP_Filesystem_Base::get_base_dir() WP 6.1.1

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