wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



pre_recurse_dirsize › Les Filtres WordPress

Depuis5.6.0
Dépréciéen/a
› apply_filters( 'pre_recurse_dirsize', false, $directory, $exclude, $max_execution_time, $directory_cache )
Paramètres: (5)
  • () space_used The amount of used space, in bytes. Default false.
    Requis: Oui
  • () directory Full path of a directory.
    Requis: Oui
  • () exclude Full path of a subdirectory to exclude from the total, or array of paths.
    Requis: Oui
  • () max_execution_time Maximum time to run before giving up. In seconds.
    Requis: Oui
  • () directory_cache Array of cached directory paths.
    Requis: Oui
Défini(e) dans:
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.




Source

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