| 3767 | * @param int|WP_Post $attachment Attachment ID or object. |
| 3768 | * |
| 3769 | * @return array|void { |
| 3770 | * Array of attachment details. |
| 3771 | * |
| 3772 | * @type int $id The ID of the attachment |
| 3773 | * @type string $title The attachment's title (Usually the slugified file name without the extension) |
| 3774 | * @type string $filename The attachment's file name |
| 3775 | * @type string $url The attachment's direct link (from wp-content) |
| 3776 | * @type string $link The URL to the attachment page |
| 3777 | * @type string $alt Alt text of the attachment |
| 3778 | * @type string $author The Author's ID in string format |
| 3779 | * @type string $description The attachment's description |
| 3780 | * @type string $caption The attachment's caption |
| 3781 | * @type string $name The attachment's name, same as title |
| 3782 | * @type string $status Attachment's 'post' status (Usually 'inherit') |
| 3783 | * @type int $uploadedTo Parent post to which the attachment was uploaded |
| 3784 | * @type int $date Uploaded date, timestamp in milliseconds |
| 3785 | * @type int $modified Last modified, timestamp in milliseconds |
| 3786 | * @type int $menuOrder Post's menu order |
| 3787 | * @type string $mime Attachment's mine (Ex: image/jpeg, application/zip, etc.) |
| 3788 | * @type string $type Attachment type (Usually first-part of mime, eg: image) |
| 3789 | * @type string $subtype Attachment's subtype (Usually the last-part of mine, eg: jpeg / zip) |
| 3790 | * @type string $icon Attachment's icon URL (Eg: /wp-includes/images/media/archive.png) |
| 3791 | * @type string $dateFormatted Formatted Date (Eg: June 29, 2018) |
| 3792 | * @type array $nonces Nounces for update, delete and edit |
| 3793 | * @type string $editLink Link to attachment's edit page |
| 3794 | * @type array $meta Attachment's meta |
| 3795 | * @type string $authorName Author's name |
| 3796 | * @type string $uploadedToLink Link to the attachment's parent post edit page |
| 3797 | * @type string $uploadedToTitle Attachment's parent post title |
| 3798 | * @type int $filesizeInBytes Attachment's filesize in bytes |
| 3799 | * @type string $filesizeHumanReadable Attachment's filesize in human readable format (Eg: 1 MB) |
| 3800 | * @type string $context Context, whether it's used as site icon for example |
| 3801 | * @type array $compat Containing item and meta |
| 3802 | * @type int $height If the attachment's an image, it represents the height of the image. |
| 3803 | * @type int $width If the attachment's an image, it represents the width of the image. |
| 3804 | * @type string $orientation If the attachment's an image, it represents the image orientation (landscape / portrait). |
| 3805 | * @type array $sizes If the attachment's an image, it contains an array of arrays from the different images sizes: thumb, medium, large, full |
| 3806 | * } |
| 3807 | * |