Files
Roman Pyrih c2e100a763 first commit
2023-07-24 08:30:51 +02:00

13 lines
305 B
PHP

<?php
class Brizy_Content_Placeholders_ImageAltAttribute extends Brizy_Content_Placeholders_ImageAttribute {
/**
* @param $attachmentId
*
* @return string
*/
protected function getAttributeValue( $attachmentId ) {
return get_post_meta( $attachmentId, '_wp_attachment_image_alt', true );
}
}