WP_Filesystem_ftpsockets::move()
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 6.1.1
public function move( $source, $destination, $overwrite = false ) { return $this->ftp->rename( $source, $destination ); }