To get this to work would require changing the way the core files work. I couldn’t get it to function. If you want one of the developers to assist on this you can obtain it via https://eventespresso.com/product/priority-support-tokens/
It’s on right. I have done it myself. I just used your function get_number_of_attendees_reg_limit() like this:
$available_spaces = get_number_of_attendees_reg_limit($event->id, 'available_spaces');
$eventArray['available_spaces'] = $available_spaces;
and then in the JS code:
text: '' + event.available_spaces,
I published the code just in case anyone else may want to achieve the same thing to.
The js code is incomplete there, what I wanted to wrote is:
text: '<?php _e('Available Spaces:', 'event_espresso'); ?>' + event.available_spaces,
Viewing 4 reply threads
The support post ‘Showing attendee number in calendars‘ tooltip’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.