WP_Filesystem_Base::find_base_dir

Advertisement

Deprecated Deprecated

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

Summery Summery

Locates a folder on the remote filesystem.

Syntax Syntax

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

Parameters Parameters

$base

(Optional) The folder to start searching from.

Default value: '.'

$echo

(Optional) True to display debug information.

Default value: false

Return Return

(string) The location of the remote path.

Source Source

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

	 * @return string The location of the remote path.
	 */
	public function find_base_dir( $base = '.', $echo = false ) {
		_deprecated_function( __FUNCTION__, '2.7.0', 'WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir()' );
		$this->verbose = $echo;

Advertisement

Changelog Changelog

Changelog
Version Description
2.7.0 use WP_Filesystem::abspath() or WP*Filesystem::wp**_dir() instead.
2.5.0 Introduced.

See also See also

Advertisement

Leave a Reply