I would be interested in using this code snippet as well. My company has season tickets to the Washington Nationals, and we make the tickets available for request to our employees. We have had a problem with them not adhering to the one-person-one-ticket rule, so if this code can handle that it would be great.
I am comfortable with PHP and I can find the category slug with no problem.