WP_Filesystem_Base::chmod

Advertisement

Summery Summery

Changes filesystem permissions.

Syntax Syntax

WP_Filesystem_Base::chmod( string $file, int|false $mode = false, bool $recursive = false )

Parameters Parameters

$file

(string) (Required) Path to the file.

$mode

(int|false) (Optional) The permissions as octal number, usually 0644 for files, 0755 for directories.

Default value: false

$recursive

(bool) (Optional) If set to true, changes file permissions recursively.

Default value: false

Return Return

(bool) True on success, false on failure.

Source Source

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

	public function chgrp( $file, $group, $recursive = false ) {
		return false;
	}

Advertisement

Changelog Changelog

Changelog
Version Description
2.5.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.