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 |
---|---|
8311 | * @since 5.6.0 |
8312 | * |
8313 | * @param int|false $space_used The amount of used space, in bytes. Default false. |
8314 | * @param string $directory Full path of a directory. |
8315 | * @param string|string[]|null $exclude Full path of a subdirectory to exclude from the total, |
8316 | * or array of paths. |
8317 | * @param int $max_execution_time Maximum time to run before giving up. In seconds. |
8318 | * @param array $directory_cache Array of cached directory paths. |
8319 | */ |
8320 | $size = apply_filters( 'pre_recurse_dirsize', false, $directory, $exclude, $max_execution_time, $directory_cache ); |
8321 |
|
8322 | if ( false === $size ) { |
8323 | $size = 0; |
8324 |
|
8325 | $handle = opendir( $directory ); |
8326 | if ( $handle ) { |
8327 | while ( ( $file = readdir( $handle ) ) !== false ) { |
8328 | $path = $directory . '/' . $file; |
8329 | if ( '.' !== $file && '..' !== $file ) { |