• Resolved comscieme

    (@comscieme)


    Hi,

    Mainly I want to update the event-single.php where instead of just showing

    echo $EM_Event->output_single();

    I want to had a condition before showing the content. For Example

    If event is not private
              echo $EM_Event->output_single();
    else
             if logged in user
                    echo $EM_Event->output_single();
             else
                    echo "You need to login before viewing this content";

    Is this possible

    Thanks

    https://wordpress.org/plugins/events-manager/

Viewing 1 replies (of 1 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    you can see sample condition under classes/em-event.php then search for function output()

Viewing 1 replies (of 1 total)

The topic ‘Conditional Private Event’ is closed to new replies.