WP_Filesystem_FTPext::owner
Gets the file owner.
Method of the class: WP_Filesystem_FTPext{}
No Hooks.
Returns
String|false. Username of the owner on success, false on failure.
Usage
$WP_Filesystem_FTPext = new WP_Filesystem_FTPext(); $WP_Filesystem_FTPext->owner( $file );
- $file(string) (required)
- Path to the file.
Changelog
| Since 2.5.0 | Introduced. |
WP_Filesystem_FTPext::owner() WP Filesystem FTPext::owner code WP 7.0
public function owner( $file ) {
$dir = $this->dirlist( $file );
return $dir[ $file ]['owner'] ?? '';
}