13 lines
323 B
PHP
Raw Normal View History

2020-01-22 12:15:24 +00:00
<?php
add_action('mep_event_thumbnail','mep_thumbnail');
function mep_thumbnail(){
2020-03-19 12:34:31 +00:00
global $post;
ob_start();
2020-01-22 12:15:24 +00:00
?>
<div class="mep-event-thumbnail">
<?php the_post_thumbnail('full'); ?>
</div>
<?php
2020-03-19 12:34:31 +00:00
$content = ob_get_clean();
echo apply_filters('mage_event_single_thumbnail', $content,$post->ID);
}