8674functionget_dirsize($directory,$max_execution_time=null){86758676/*8677 * Exclude individual site directories from the total when checking the main site of a network,8678 * as they are subdirectories and should not be counted.8679 */8680if(is_multisite()&&is_main_site()){8681$size=recurse_dirsize($directory,$directory.'/sites',$max_execution_time);8682}else{8683$size=recurse_dirsize($directory,null,$max_execution_time);8684}86858686return$size;8687}
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.8.8 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.