wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



pre_recurse_dirsize › WordPress Filter Hooks

Seit5.6.0
Veraltetn/v
apply_filters( 'pre_recurse_dirsize', false, $directory, $exclude, $max_execution_time, $directory_cache )
Parameter: (5)
  • () space_used The amount of used space, in bytes. Default false.
    Erforderlich: Ja
  • () directory Full path of a directory.
    Erforderlich: Ja
  • () exclude Full path of a subdirectory to exclude from the total, or array of paths.
    Erforderlich: Ja
  • () max_execution_time Maximum time to run before giving up. In seconds.
    Erforderlich: Ja
  • () directory_cache Array of cached directory paths.
    Erforderlich: Ja
Definiert in:
Codex:

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.




Quellcode

$size = apply_filters( 'pre_recurse_dirsize', false, $directory, $exclude, $max_execution_time, $directory_cache );