On this page
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
$filestring-
Path to the file.
$attachment_idint-
Attachment ID.
Source
File: wp-admin/includes/class-custom-image-header.php. View all references
do_action( 'wp_create_file_in_uploads', $file, $attachment_id ); // For replication.
Related
Used By
| Used By | Description |
|---|---|
| wp_ajax_crop_image() wp-admin/includes/ajax-actions.php | Ajax handler for cropping an image. |
| Custom_Image_Header::ajax_header_crop() wp-admin/includes/class-custom-image-header.php | Gets attachment uploaded by Media Manager, crops it, then saves it as a new object. Returns JSON-encoded object details. |
| Custom_Image_Header::step_2() wp-admin/includes/class-custom-image-header.php | Display second step of custom header image page. |
| Custom_Image_Header::step_3() wp-admin/includes/class-custom-image-header.php | Display third step of custom header image page. |
| Custom_Background::handle_upload() wp-admin/includes/class-custom-background.php | Handles an Image upload for the background image. |
Changelog
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_create_file_in_uploads