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



pre_wp_unique_filename_file_list › WordPress Filter Hooks

Seit5.5.0
Veraltetn/v
apply_filters( 'pre_wp_unique_filename_file_list', null, $dir, $filename )
Parameter: (3)
  • () files The list of files to use for filename comparisons. Default null (to retrieve the list from the filesystem).
    Erforderlich: Ja
  • () dir The directory for the new file.
    Erforderlich: Ja
  • () filename The proposed filename for the new file.
    Erforderlich: Ja
Definiert in:
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.




Quellcode

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