Home Forums Event Espresso Premium Total amount of spaces available (multiple events)

Total amount of spaces available (multiple events)

Posted: August 30, 2018 at 12:01 pm


August 30, 2018 at 12:01 pm


Just wondering if there is a way we can find out the TOTAL number of openings left over multiple events.

Is there an easy way to find this out?



  • Support Staff

August 30, 2018 at 1:07 pm

Hi there,

May I ask, I which context?

You’ll need to pull those events in, loop over them and run something like $event->spaces_remaining_for_sale(); on each only, combining the result for a total amount.

However, I’m guessing you currently don’t have a query pulling in the events to loop over?


September 11, 2018 at 5:37 am

We have multiple hikes set up through Event Espresso.

Some hikes are currently 10 registrants out of 30, 17 out of 20, etc.

We would like to see the total number of registrants currently out of total capacity.

No, we currently don’t have a query set up.


  • Support Staff

September 11, 2018 at 5:39 am

OK, can you add a screenshot of where you would like that output?

If there is a hook available in that or a similar location I may be able to provide a snippet to do what you are looking for.


September 11, 2018 at 5:47 am

Wherever it would be easiest to add. This is just for reporting purposes and won’t be used in the front end of the website.


  • Support Staff

September 13, 2018 at 12:10 pm

So you’re looking for something like this? –

If so you can use this example:

If not you can use the above snippet as a base to include the details you need, although you will likely need the help of a developer if you are not familiar with PHP.

The support post ‘Total amount of spaces available (multiple events)’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: closed

Updated by  Tony 1 year, 8 months ago ago

Topic Tags


This topic is: not resolved
Do NOT follow this link or you will be banned from the site!