WP_Filesystem_ftpsockets::mtime │ public │ WP 2.5.0

Gets the file modification time.

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

Хуков нет.

Возвращает

int|false. Unix timestamp representing modification time, false on failure.

Использование

$WP_Filesystem_ftpsockets = new WP_Filesystem_ftpsockets();
$WP_Filesystem_ftpsockets->mtime( $file );
$file(строка) (обязательный)
Path to file.

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

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

Код WP_Filesystem_ftpsockets::mtime() WP 7.1.4

public function mtime( $file ) {
	$modified_time = $this->ftp->mdtm( $file );
	if ( false === $modified_time ) {
		return false;
	}
	return (int) $modified_time;
}