Grab the data with a filter:
add_filter('wp_update_attachment_metadata', 'grab_meta_data');
function grab_meta_data($data, $post_id) {
// inspect $data here
return $data;
}
Related Posts:
- How can I add an image upload field directly to a custom write panel?
- Post meta vs separate database tables
- Checking if a file is already in the Media Library
- Standard location for plugin to save/cache files?
- Saving data-URI to media library
- get_template_part from plugin
- Change Media Uploader default directory
- How to control output of custom post type without modifying theme?
- Changing upload directory for plugin uploads only
- Upload file to remote storage
- Unit testing to simulate the loop
- Save metabox with multiple checkbox array
- How to enable users to down-vote in this simple voting counter (that uses the post meta)?
- Why are two functions over-riding each other?
- How to Display Custom Post Type’s Gallery (images ) in Through WP_Query
- WordPress Media mime type filter problem 4.0
- How can I add a custom meta value on file upload?
- Is there a way to list tags order by post_meta field
- Using the component outside the editor. select(‘core’) is null
- Paging on a future post loop?
- Proper way to hook wp_get_attachment_url
- Sharing a common set of image files for media library, across all sites within multisite
- Uploading images from a custom page using blueimp uploader?
- Ordering posts by metadata
- How to send email in wordpress with more than one attachments
- Act on user meta updated, but only once
- Finding posts containing matching array elements in a meta field usign WP_Query
- How to check if Woocommerce Order number equals to post ID?
- Using the default wordpress uploader inside plugin
- Files automatically added
- get_the_excerpt() not working in plugin loop
- What filter should I use to insert a button inside on Media>Add New
- using new WP_Query in save_post function alters $post
- Changing upload dir in a plugin regardless of post type
- update post meta for checkbox in the admin when inserted in the front-end
- How to replicate Media Library “Add New” on Plugin Settings Page
- Plugin writing: access file that was just uploaded
- Saving value of a selection option in comment form as comment meta
- Add a Save Button to Custom Meta Box [duplicate]
- Plugin with action ‘save_post’ needs to press publish twice on order to publish
- How to enable sorting in custom media uploader in plugin
- Create a new post using rest api and save featured image using an external image url
- Why is the temporary upload always 4.1K
- Doubts about the use of metadata and how this can affect performance on WordPress
- update_post_meta not working in a loop
- Run Shortcode of post’s custom field in functions.php / Plugin
- Get draggable widgets on Edit Post page
- Upload multiple images and insert them into custom html code
- How to get the post excerpt using post object?
- Delist entries in the_loop
- WP nonce field checkbox prints checked=’checked’ outside input field
- Add function after the_content
- Ajax: Populate with content from a post’s ID not working – duplicating current page html instead
- How to create a digital product download link that can’t be used twice?
- Issues Updating Post Meta with AJAX (Seems simple but cannot figure it out)
- Using delete_post_meta for deleting multiple selected options
- How to submit/upload data to database and in specific folder?
- Cleaning a filename after image sideloading a url that contains `%20`
- Plugin can’t be activated [closed]
- Remember the Meta Value With Radio Buttons
- Any way to update_post_meta with html content? It gets stripped and becomes empty
- Remove Meta-boxes (Yoast SEO plugin) [duplicate]
- Is there a way to add a link with add_post_meta?
- How to move an image in a plugin to the upload directory and make it as a media of wordpress?
- Adjust query on single
- Why doesn’t update_post_meta work for certain strings?
- rewrite_rules problem
- wp.media Uncaught TypeError: Cannot read properties of undefined (reading ‘state’)
- Why is $_POST empty when saving custom Meta Box?
- Count products with custom metadata field in an order
- Condition to check previous next article post title
- register_meta not showing custom post type metabox data in rest api
- Trying to rename a file upload as the hash of file content on wordpress
- How do I add filter with woocommerce categories?
- Home page is not loading, where in other pages are displaying on the site
- Insert, update or remove data from database (usermeta)
- WordPress discards PNG file when uploading plugin file
- Hook for validating and rejecting frontend image upload
- Don’t print customizer styles when no setting has been used
- How to include files in the loop via ajax
- Unexpected issue when using attachment_fields_to_edit filter
- WordPress delete mysql rows with string
- Saving post meta
- Displaying Custom Post Meta
- How to destroy or dispose wordpress uploder/manager?
- Include add_post_meta in a plugin
- Displaying $_FILES data (simlar to $_POST)
- Changing upload directory for plugin uploads only
- Loop output for custom plugin [solution found]
- How do you filter get_media_items by mime type in a custom media upload tab?
- Is it possible to convert various image types from remote URLs to WebP and then serve them immediately?
- upload script in plugin development [duplicate]
- A better way of getting draft posts that has a particular post meta using get_posts function
- Load images from CDN and custom features to “Add Media” dialogue
- upload image to wordpress media library failed for custom post type
- wp media uploader and ID3 tags
- WordPress Playground and uploading permission issue
- Do uploaded files to /tmp/ get deleted in WordPress automatically?
- How to modify the uploads directory for wp.media.frame assigning an subfolder name
- WordPress Media Uploader not displaying image that has just been uploaded