Save Custom Meta Value on Media Upload
If you are uploading via Core admin pages, WordPress will most likely upload the file, and then create an attachment post– that is, a post with the attachment post type. So the save_post_attachment hook might do it for you. 3362 /** 3363 * Fires once a post has been saved. 3364 * 3365 * The … Read more