If you’re a WordPress user who frequently manages events with tickets for sale, you may have noticed that the Public Attendees List is turned off by default. This means that site admins or event organizers must activate this feature separately for each event. While this allows for tailored control, it can be time-consuming if you have multiple events to manage. Fortunately, there’s a simple solution to activate the public attendees list for all your events simultaneously.

Understanding the Public Attendees List

The public attendees list is a feature of the Event Tickets Plus plugin that shows a list of attendees for public events. This can enhance the user experience by allowing potential guests to see who else is attending, thus encouraging them to join in. However, as stated, it is deactivated by default and requires each event to be modified individually to enable this setting.

This can become tedious, especially for event managers with numerous upcoming events. Instead of manually activating the feature for each event, you can use a code snippet to apply the changes universally.

This Is the Code You’re Looking For

Here’s the code that does the trick:

Add the code snippet to the functions.php file of your theme, or use your preferred method for integrating snippets into your WordPress site, such as the free Code Snippets plugin.

Utilizing this code snippet is an efficient way to streamline the process of activating the public attendees list for all your events. Rather than activating the feature one event at a time, you can easily ensure that all events display a list of attendees to enhance participation and engagement.

For Developers