Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/functions.php | apply_filters | 8281 | /** * Filters the amount of storage space used by one directory and all its children, in megabytes. * * Return the actual used space to short-circuit the recursive PHP file size calculation * and use something else, like a CDN API or native operating system tools for better performance. * * @since 5.6.0 * * @param int|false $space_used The amount of used space, in bytes. Default false. * @param string $directory Full path of a directory. * @param string|string[]|null $exclude Full path of a subdirectory to exclude from the total, * or array of paths. * @param int $max_execution_time Maximum time to run before giving up. In seconds. * @param array $directory_cache Array of cached directory paths. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
int|false | $space_used | The amount of used space, in bytes. Default false. |
string | $directory | Full path of a directory. |
string|string[]|null | $exclude | Full path of a subdirectory to exclude from the total, |
int | $max_execution_time | Maximum time to run before giving up. In seconds. |
array | $directory_cache | Array of cached directory paths. |