On this page
WP_Filesystem_Base::find_base_dir( string $base = '.', bool $verbose = false ): string
This method has been deprecated. Use WP_Filesystem_Base::abspath() instead.
Locates a folder on the remote filesystem.
Description
See also
Parameters
$basestring Optional-
The folder to start searching from. Default
'.'.Default:
'.' $verbosebool Optional-
True to display debug information.
Default:
false
Return
string The location of the remote path.
Source
File: wp-admin/includes/class-wp-filesystem-base.php. View all references
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();
}
Related
Uses
| Uses | Description |
|---|---|
| WP_Filesystem_Base::abspath() wp-admin/includes/class-wp-filesystem-base.php | Returns the path on the remote filesystem of ABSPATH. |
| _deprecated_function() wp-includes/functions.php | Marks a function as deprecated and inform when it has been used. |
Changelog
| Version | Description |
|---|---|
| 2.7.0 | use WP_Filesystem_Base::abspath() or WP_Filesystem*Base::wp**_dir() instead. |
| 2.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_filesystem_base/find_base_dir