W3cubDocs

/WordPress

do_action( 'wp_create_file_in_uploads', string $file, int $attachment_id )

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

Parameters

$file

(string) Path to the file.

$attachment_id

(int) Attachment ID.

Source

File: wp-admin/includes/class-custom-image-header.php

View on Trac

Changelog

Version Description
2.1.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_create_file_in_uploads