Attendee limit on registration

Attendee limit on registration addon
This tutorial shows how to attendee limit on registration addon. First add a new field in functions.php and following tutorial Adding a new field for event submission form documentation. If you want to add field using field editor make lable name registration limit. Once you have added fields you can add below code to your function.php file.
Open up your theme functions.php field and create a function to the events section. First, hook it in: Then write the function: