WP_Filesystem_Base::chown() – Changes the owner of a file or directory.

You appear to be a bot. Output may be restricted

Description

Changes the owner of a file or directory.

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

Usage

$bool = WP_Filesystem_Base::chown( $file, $owner, $recursive );

Parameters

$file
( string ) required – Path to the file or directory.
$owner
( string|int ) required – A user name or number.
$recursive
( bool ) optional – Optional. If set to true, changes file owner recursively. Default false.

Returns

bool True on success, false on failure.

Source

File name: wordpress/wp-admin/includes/class-wp-filesystem-base.php
Lines:

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

 View on GitHub View on Trac