With the following code in functions.php - wp_get_attachment_metadata()
returns false and or empty. Perhaps I am attempting to use wp_get_attachment_metadata()
before it's ready? As some tests have shown when manually add a previously added $attachement_ID
I get the desired information..
function my_custom_attachment($attachment_ID) {
$meta = wp_get_attachment_metadata($attachment_id); // returns false
}
add_action('add_attachment', 'my_custom_attachment');