Created
April 27, 2021 09:23
-
-
Save Pebblo/2916cff85d64b4b03c6f4c69626a39d6 to your computer and use it in GitHub Desktop.
Example of how to include the ESPRESSO_EVENT_ATTENDEES output for each datetime on an event.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php //Please do not include the opening PHP tag if you already have one. | |
add_action('FHEE__espresso_list_of_event_dates__datetime_html', 'tw_ee_add_event_attendees_to_datetimes', 10, 2); | |
function tw_ee_add_event_attendees_to_datetimes( $html, $datetime ) { | |
$html .= do_shortcode('[ESPRESSO_EVENT_ATTENDEES datetime_id=' . $datetime->ID() . ']'); | |
return $html; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment