Title: Conditional Private Event
Last modified: August 31, 2016

---

# Conditional Private Event

 *  Resolved [comscieme](https://wordpress.org/support/users/comscieme/)
 * (@comscieme)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/conditional-private-event/)
 * 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/](https://wordpress.org/plugins/events-manager/)

Viewing 1 replies (of 1 total)

 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/conditional-private-event/#post-7204840)
 * 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.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/conditional-private-event/#post-7204840)
 * Status: resolved