WP_Filesystem_Base::move()
Moves a file.
Method of the class: WP_Filesystem_Base{}
No Hooks.
Return
true|false
. True on success, false on failure.
Usage
$WP_Filesystem_Base = new WP_Filesystem_Base(); $WP_Filesystem_Base->move( $source, $destination, $overwrite );
- $source(string) (required)
- Path to the source file.
- $destination(string) (required)
- Path to the destination file.
- $overwrite(true|false)
- Whether to overwrite the destination file if it exists.
Default: false
Changelog
Since 2.5.0 | Introduced. |
WP_Filesystem_Base::move() WP Filesystem Base::move code WP 6.6.2
public function move( $source, $destination, $overwrite = false ) { return false; }