wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_create_file_in_uploads › WordPress Filter Hooks

Since2.1.0
Deprecatedn/a
apply_filters( 'wp_create_file_in_uploads', $file, $attachment_id )
Parameters: (2)
  • (string) $file Path to the file.
    Required: Yes
  • (int) $attachment_id Attachment ID.
    Required: Yes
Defined at:
Codex:

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

Used for file replication.





Source

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