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



pre_wp_unique_filename_file_list › Filtr WordPress Hooks

Od5.5.0
Przestarzałyn/a
› apply_filters( 'pre_wp_unique_filename_file_list', null, $dir, $filename )
Parametry: (3)
  • () files The list of files to use for filename comparisons. Default null (to retrieve the list from the filesystem).
    Wymagane: Tak
  • () dir The directory for the new file.
    Wymagane: Tak
  • () filename The proposed filename for the new file.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the file list used for calculating a unique filename for a newly added file.

Returning an array from the filter will effectively short-circuit retrieval from the filesystem and return the passed value instead.




Źródło

$files = apply_filters( 'pre_wp_unique_filename_file_list', null, $dir, $filename );