A WordPress-centric search engine for devs and theme authors



wp_create_file_in_uploads ›

Since2.1.0
Deprecatedn/a
do_action( '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:

Fires after the header image is set or an error is returned.





Source

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