Skip to content

Conversation

@jakobbuis
Copy link
Contributor

In the current state, it is not possible to retrieve the alt-text of an Image Field. Exposing the attachment on the Image class results in a similar API to ThumbnailMeta, so one can retrieve image-meta-data through

$image->attachment->meta->_wp_attachment_image_alt;

@jakobbuis jakobbuis changed the title Feature/image must expose its attachment Image must expose its attachment Apr 27, 2017
@jgrossi jgrossi changed the base branch from master to develop April 27, 2017 16:56
@jgrossi jgrossi merged commit 58eaa5c into corcel:develop Apr 27, 2017
@jakobbuis jakobbuis deleted the feature/image-must-expose-its-attachment branch April 28, 2017 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants