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



wp_unique_filename › Filtr WordPress Hooks

Od5.8.1
Przestarzałyn/a
› apply_filters( 'wp_unique_filename', $filename, $ext, $dir, $unique_filename_callback, $alt_filenames, $number )
Parametry: (6)
  • () filename Unique file name.
    Wymagane: Tak
  • () ext File extension. Example: ".png".
    Wymagane: Tak
  • () dir Directory path.
    Wymagane: Tak
  • () unique_filename_callback Callback function that generates the unique file name.
    Wymagane: Tak
  • () alt_filenames Array of alternate file names that were checked for collisions.
    Wymagane: Tak
  • () number The highest number that was used to make the file name unique or an empty string if unused.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the result when generating a unique file name.





Źródło

return apply_filters( 'wp_unique_filename', $filename, $ext, $dir, $unique_filename_callback, $alt_filenames, $number );