Skip to content

Commit

Permalink
Add the venue description to the end of a single event's meta "Venue"…
Browse files Browse the repository at this point in the history
… block.
  • Loading branch information
r-a-y committed Apr 9, 2020
1 parent 1855748 commit c2e3bf1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,15 @@ function childtheme_change_cac_icon() {
echo '</div>';
}, 999 );

/**
* Adds the venue description to the end of a single event's Venue block.
*
* @see https://redmine.gc.cuny.edu/issues/12625
*/
add_action( 'tribe_events_single_meta_venue_section_end', function() {
printf( '<dd class="tribe-venue-description">%s</dd>', get_post_field( 'post_content', tribe_get_venue_id() ) );
}, 0 );

/**
* Follow Us widget, piggybacks off Make's Social Links feature.
*
Expand Down

0 comments on commit c2e3bf1

Please sign in to comment.