WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
8229 | * @since 5.6.0 |
8230 | * |
8231 | * @param int|false $space_used The amount of used space, in bytes. Default false. |
8232 | * @param string $directory Full path of a directory. |
8233 | * @param string|string[]|null $exclude Full path of a subdirectory to exclude from the total, |
8234 | * or array of paths. |
8235 | * @param int $max_execution_time Maximum time to run before giving up. In seconds. |
8236 | * @param array $directory_cache Array of cached directory paths. |
8237 | */ |
8238 | $size = apply_filters( 'pre_recurse_dirsize', false, $directory, $exclude, $max_execution_time, $directory_cache ); |
8239 |
|
8240 | if ( false === $size ) { |
8241 | $size = 0; |
8242 |
|
8243 | $handle = opendir( $directory ); |
8244 | if ( $handle ) { |
8245 | while ( ( $file = readdir( $handle ) ) !== false ) { |
8246 | $path = $directory . '/' . $file; |
8247 | if ( '.' !== $file && '..' !== $file ) { |