WP_Filesystem_Base::chown( string $file, mixed $owner, bool $recursive = false )
Change the ownership of a file / folder.
Description
Default behavior is to do nothing, override this in your subclass, if desired.
Parameters
- $file
-
(Required) Path to the file.
- $owner
-
(Required) A user name or number.
- $recursive
-
(Optional) If set True changes file owner recursivly. Defaults to False.
Default value: false
Return
(bool) Returns true on success or false on failure.
Source
File: wp-admin/includes/class-wp-filesystem-base.php
public function chown( $file, $owner, $recursive = false ) {
return false;
}
Changelog
Version | Description |
---|---|
WP-2.5.0 | Introduced. |