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



wp_create_file_in_uploads › Filtr WordPress Hooks

Od2.1.0
Przestarzałyn/a
apply_filters( 'wp_create_file_in_uploads', $file, $attachment_id )
Parametry: (2)
  • (string) $file Path to the file.
    Wymagane: Tak
  • (int) $attachment_id Attachment ID.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the attachment file path after the custom header or background image is set.

Used for file replication.





Źródło

$file = apply_filters( 'wp_create_file_in_uploads', $file, $attachment_id ); // For replication.