Anything from EE3 will generally not work in EE4. Since EE4’s events are custom post types, you can get the event’s category slug with the wp_get_post_terms() function.
The support post ‘Get event's category slug’ 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.