8643functionget_dirsize($directory,$max_execution_time=null){86448645/*8646 * Exclude individual site directories from the total when checking the main site of a network,8647 * as they are subdirectories and should not be counted.8648 */8649if(is_multisite()&&is_main_site()){8650$size=recurse_dirsize($directory,$directory.'/sites',$max_execution_time);8651}else{8652$size=recurse_dirsize($directory,null,$max_execution_time);8653}86548655return$size;8656}
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.7.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.