WP_Filesystem_ftpsockets::owner()publicWP 2.5.0

Gets the file owner.

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

Хуков нет.

Возвращает

Строку|false. Username of the owner on success, false on failure.

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

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

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

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

Код WP_Filesystem_ftpsockets::owner() WP 6.5.2

public function owner( $file ) {
	$dir = $this->dirlist( $file );

	return $dir[ $file ]['owner'];
}