On this page
WP_Filesystem_Base::move( string $source, string $destination, bool $overwrite = false ): bool
Moves a file.
Parameters
$sourcestring Required-
Path to the source file.
$destinationstring Required-
Path to the destination file.
$overwritebool Optional-
Whether to overwrite the destination file if it exists.
Default:
false
Return
bool True on success, false on failure.
Source
File: wp-admin/includes/class-wp-filesystem-base.php. View all references
public function move( $source, $destination, $overwrite = false ) {
return false;
}
Changelog
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_filesystem_base/move