bp_document_chmod_r( $path )

Give recursive file permission.

Description

Parameters

$path

(Required)

Source

File: bp-templates/bp-nouveau/includes/document/functions.php

function bp_document_chmod_r($path) {
	$dir = new DirectoryIterator($path);
	foreach ($dir as $item) {
		chmod($item->getPathname(), 0777);
		if ($item->isDir() && !$item->isDot()) {
			bp_document_chmod_r($item->getPathname());
		}
	}
}

Changelog

Changelog
Version Description
BuddyBoss 1.4.1 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.