WP_Filesystem_Base::move( string $source, string $destination, bool $overwrite = false ): bool

In this article

Moves a file.

Parameters

$sourcestringrequired
Path to the source file.
$destinationstringrequired
Path to the destination file.
$overwritebooloptional
Whether to overwrite the destination file if it exists.

Default:false

Return

bool True on success, false on failure.

Source

public function move( $source, $destination, $overwrite = false ) {
	return false;
}

Changelog

VersionDescription
2.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.