设置标题图像或返回错误后触发。
原型
do_action( 'wp_create_file_in_uploads', string $file, int $attachment_id )
参数
$file
(string)
文件的路径。
$attachment_id
(int)
附件ID。
源文件
路径:wp-admin/custom-header.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/wp_create_file_in_uploads/