wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



pre_wp_filesize › Filtr WordPress Hooks

Od7.1.0
Przestarzałyn/a
› apply_filters( 'pre_wp_filesize', null, $path )
Parametry: (2)
  • () size The unfiltered value. Returning a non-negative number from the callback bypasses the filesize call.
    Wymagane: Tak
  • () path Path to the file.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the result of wp_filesize() before the file_exists() PHP function is run.





Źródło

$size = apply_filters( 'pre_wp_filesize', null, $path );