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