8778functionget_dirsize($directory,$max_execution_time=null){87798780/*8781 * Exclude individual site directories from the total when checking the main site of a network,8782 * as they are subdirectories and should not be counted.8783 */8784if(is_multisite()&&is_main_site()){8785$size=recurse_dirsize($directory,$directory.'/sites',$max_execution_time);8786}else{8787$size=recurse_dirsize($directory,null,$max_execution_time);8788}87898790return$size;8791}
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 7.0.4 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.