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

15 lines
304 B
PHP

<?php
class Brizy_Content_Placeholders_ImageTitleAttribute extends Brizy_Content_Placeholders_ImageAttribute {
/**
* @param $attachmentId
*
* @return mixed|string
*/
protected function getAttributeValue( $attachmentId ) {
$post = get_post( $attachmentId );
return $post->post_title;
}
}