WP_Filesystem_Base::chgrp() WordPress Method
The WP_Filesystem_Base::chgrp() method is used to change the group ownership of a given file or directory. This is typically used in conjunction with the chown() method to change both the ownership and group ownership of a given file or directory.
WP_Filesystem_Base::chgrp( string $file, string|int $group, bool $recursive = false ) #
Changes the file group.
Contents
Parameters
- $file
- (string)(Required)Path to the file. 
- $group
- (string|int)(Required)A group name or number. 
- $recursive
- (bool)(Optional) If set to true, changes file group recursively. - Default value: false 
Return
(bool) True on success, false on failure.
Source
File: wp-admin/includes/class-wp-filesystem-base.php
	public function chgrp( $file, $group, $recursive = false ) {
		return false;
	}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description | 
|---|---|
| 2.5.0 | Introduced. |