WP_Filesystem_Base::chown()publicWP 2.5.0

Changes the owner of a file or directory.

Default behavior is to do nothing, override this in your subclass, if desired.

Method of the class: WP_Filesystem_Base{}

No Hooks.

Return

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

Usage

$WP_Filesystem_Base = new WP_Filesystem_Base();
$WP_Filesystem_Base->chown( $file, $owner, $recursive );
$file(string) (required)
Path to the file or directory.
$owner(string|int) (required)
A user name or number.
$recursive(true|false)
If set to true, changes file owner recursively.
Default: false

Changelog

Since 2.5.0 Introduced.

WP_Filesystem_Base::chown() code WP 6.6.2

public function chown( $file, $owner, $recursive = false ) {
	return false;
}