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.

Метод класса: WP_Filesystem_Base{}

Хуков нет.


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


$WP_Filesystem_Base = new WP_Filesystem_Base();
$WP_Filesystem_Base->chown( $file, $owner, $recursive );
$file(строка) (обязательный)
Path to the file or directory.
$owner(строка|int) (обязательный)
A user name or number.
If set to true, changes file owner recursively.
По умолчанию: false

Список изменений

С версии 2.5.0 Введена.

Код WP_Filesystem_Base::chown() WP 6.5.3

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