8726functionget_dirsize($directory,$max_execution_time=null){87278728/*8729 * Exclude individual site directories from the total when checking the main site of a network,8730 * as they are subdirectories and should not be counted.8731 */8732if(is_multisite()&&is_main_site()){8733$size=recurse_dirsize($directory,$directory.'/sites',$max_execution_time);8734}else{8735$size=recurse_dirsize($directory,null,$max_execution_time);8736}87378738return$size;8739}
History
Introduced in 5.2.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
5.2.0
$max_execution_time parameter added.from the docblock
MU (3.0.0)
MU (3.0.0)from the docblock
About this page
Parsed data
Generated from the wordpress-develop 6.9.7 tag, from src/wp-includes/functions.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.