Warning: This method has been deprecated. Use WP_Filesystem_Base::abspath() instead.

WP_Filesystem_Base::find_base_dir( string $base = '.', bool $echo = false )

Locates a folder on the remote filesystem.

Description Description

Top ↑

See also See also

Top ↑

Parameters Parameters


(string) (Optional) The folder to start searching from.

Default value: '.'


(bool) (Optional) True to display debug information.

Default value: false

Top ↑

Return Return

(string) The location of the remote path.

Top ↑

Source Source

File: wp-admin/includes/class-wp-filesystem-base.php

	public function find_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();

Top ↑

Changelog Changelog

Version Description
2.7.0 use WP_Filesystem_Base::abspath() or WP_Filesystem*Base::wp**_dir() instead.
2.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.