Events Made Easy Forums How do I … How do I get event ID in single event page?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #61395
    Anonymous
    Inactive

    Hi,

    I used to do the following to get my event ID when I’m on the single event page:

    
    if (eme_is_single_event_page()){
    				
    		$event_id = intval(get_query_var('event_id'));
    		$event = eme_get_event($event_id);
    	
    

    this doesn’t work anymore in more recent versions of EME.

    What’s the proper way to do it?

    Thanks,
    Lorenz

    #61396
    Anonymous
    Inactive

    ok I solved this myself, I can use

    $event_id = eme_sanitize_request(get_query_var('event_id'));
    instead

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘How do I …’ is closed to new topics and replies.
Scroll to Top