Warning: This method has been deprecated. Use WP_Filesystem_Base::abspath() instead.
WP_Filesystem_Base::find_base_dir() WordPress Method
The WP_Filesystem_Base::find_base_dir() method is used to find the base directory of a WordPress installation. This is useful for finding the absolute path to a file or directory.
WP_Filesystem_Base::find_base_dir( string $base = '.', bool $verbose = false ) #
Locates a folder on the remote filesystem.
Description
See also
Parameters
- $base
(string)(Optional) The folder to start searching from.
Default value: '.'
- $verbose
(bool)(Optional) True to display debug information.
Default value: false
Return
(string) The location of the remote path.
Source
File: wp-admin/includes/class-wp-filesystem-base.php
public function find_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(); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.7.0 | use WP_Filesystem_Base::abspath() or WP_Filesystem*Base::wp**_dir() instead. |
2.5.0 | Introduced. |