Glossary Term
wp_get_attachment_metadata()
wp_get_attachment_metadata() — Retrieves attachment metadata for attachment ID.
Inputs: $attachment_id (int): Attachment post ID. Defaults to global $post. $unfiltered (bool): Optional. If true, filters are not run. Default false.
Returns array|false: Attachment metadata. False on failure. Field $width (int): The width of the attachment. Field $height (int): The height of the attachment. Field $file (string): The file path relative to wp-content/uploads. Field $sizes (array): Keys are size slugs, each value is an array containing ‘file’, ‘width’, ‘height’, and ‘mime-type’. Field $image_meta (array): Image metadata. Field $filesize (int): File size of the attachment.
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
