3570 | | * @return array|void Array of attachment details. |
| 3570 | * @return array|void { |
| 3571 | * Array of attachment details. |
| 3572 | * |
| 3573 | * @type int $id The ID of the attachment |
| 3574 | * @type string $title The attachment's title (Usually the slugified file name without the extension) |
| 3575 | * @type string $filename The attachment's file name |
| 3576 | * @type string $url The attachment's direct link (from wp-content) |
| 3577 | * @type string $link The URL to the attachment page |
| 3578 | * @type string $alt Alt text of the attachment |
| 3579 | * @type string $author The Author's ID in string format |
| 3580 | * @type string $description The attachment's description |
| 3581 | * @type string $caption The attachment's caption |
| 3582 | * @type string $name The attachment's name, same as title |
| 3583 | * @type string $status Attachment's 'post' status (Usually 'inherit') |
| 3584 | * @type int $uploadedTo Parent post to which the attachment was uploaded |
| 3585 | * @type int $date Uploaded date, timestamp in milliseconds |
| 3586 | * @type int $modified Last modified, timestamp in milliseconds |
| 3587 | * @type int $menuOrder Post's menu order |
| 3588 | * @type string $mime Attachment's mine (Ex: image/jpeg, application/zip, etc.) |
| 3589 | * @type string $type Attachment type (Usually first-part of mime, eg: image) |
| 3590 | * @type string $subtype Attachment's subtype (Usually the last-part of mine, eg: jpeg / zip) |
| 3591 | * @type string $icon Attachment's icon URL (Eg: /wp-includes/images/media/archive.png) |
| 3592 | * @type string $dateFormatted Formatted Date (Eg: June 29, 2018) |
| 3593 | * @type array $nonces Nounces for update, delete and edit |
| 3594 | * @type string $editLink Link to attachment's edit page |
| 3595 | * @type array $meta Attachment's meta |
| 3596 | * @type string $authorName Author's name |
| 3597 | * @type string $uploadedToLink Link to the attachment's parent post edit page |
| 3598 | * @type string $uploadedToTitle Attachment's parent post title |
| 3599 | * @type int $filesizeInBytes Attachment's filesize in bytes |
| 3600 | * @type string $filesizeHumanReadable Attachment's filesize in human readable format (Eg: 1 MB) |
| 3601 | * @type string $context |
| 3602 | * @type array $compat Containing item and meta |
| 3603 | * @type int/undefined $height If the attachment's an image, it represents the height of the image. |
| 3604 | * @type int/undefined $width If the attachment's an image, it represents the width of the image. |
| 3605 | * @type string/undefined $orientation If the attachment's an image, it represents the image orientation (landscape / portrait). |
| 3606 | * @type array/undefined $sizes If the attachment's an image, it contains an array of arrays from the different images sizes: thumb, medium, large, full |
| 3607 | * } |
| 3608 | * |