Enterprise-level site with terabytes of images. Trying to pare that down moving forward, so rather than every image upload processing to every image size, we're trying to restrict image processing to specific sizes for specific post types/pages/etc.
[
'id' => 'ebook_image',
'name' => 'Ebook Cover',
'type' => 'image_advanced',
'tab' => 'event',
'max_file_uploads' => 1,
'image_size' => 'ebook',
'visible' => ['type', '=', 'Ebooks'],
],
BUt on upload, the only data is the image name, post ID, and some other more or less useless information for this:
Array
(
[name] => Ebook.png
[action] => upload-attachment
[_wpnonce] => ee8d7718b2
[post_id] => 12189524
)
Is there any way to attach more data to the upload, suce as the field ID?