WP_Filesystem_ftpsockets::move() public WP 2.5.0
Moves a file.
{} Это метод класса: WP_Filesystem_ftpsockets{}
Хуков нет.
Возвращает
true/false. True on success, false on failure.
Использование
$WP_Filesystem_ftpsockets = new WP_Filesystem_ftpsockets(); $WP_Filesystem_ftpsockets->move( $source, $destination, $overwrite );
- $source(строка) (обязательный)
- Path to the source file.
- $destination(строка) (обязательный)
- Path to the destination file.
- $overwrite(true/false)
- Whether to overwrite the destination file if it exists.
По умолчанию: false
Список изменений
С версии 2.5.0 | Введена. |
Код WP_Filesystem_ftpsockets::move() WP Filesystem ftpsockets::move WP 5.6.2
public function move( $source, $destination, $overwrite = false ) {
return $this->ftp->rename( $source, $destination );
}