WP_Filesystem_FTPext::group()publicWP 2.5.0

Gets the file's group.

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

Хуков нет.

Возвращает

Строку|false. The group on success, false on failure.

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

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

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

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

Код WP_Filesystem_FTPext::group() WP 6.5.2

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

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