WP_Filesystem_Direct::chdir() WordPress Method
The WP_Filesystem_Direct::chdir() function changes the current directory to the specified directory.
WP_Filesystem_Direct::chdir( string $dir ) #
Changes current directory.
Contents
Parameters
- $dir
(string)(Required)The new current directory.
Return
(bool) True on success, false on failure.
Source
File: wp-admin/includes/class-wp-filesystem-direct.php
public function chdir( $dir ) { return @chdir( $dir ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |