WP_Filesystem_ftpsockets::touch()publicWP 2.5.0

Sets the access and modification times of a file.

Note: If $file doesn't exist, it will be created.

{} Это метод класса: WP_Filesystem_ftpsockets{}

Хуков нет.


true|false. True on success, false on failure.


$WP_Filesystem_ftpsockets = new WP_Filesystem_ftpsockets();
$WP_Filesystem_ftpsockets->touch( $file, $time, $atime );
$file(строка) (обязательный)
Path to file.
Modified time to set for file.
Access time to set for file.

Список изменений

С версии 2.5.0 Введена.

Код WP_Filesystem_ftpsockets::touch() WP 6.0

public function touch( $file, $time = 0, $atime = 0 ) {
	return false;