Title: Hiding end time
Last modified: January 1, 2024

---

# Hiding end time

 *  Resolved [smith37](https://wordpress.org/support/users/smith37/)
 * (@smith37)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/hiding-end-time/)
 * Hi. I want to hide the end times from display on the event single page and event
   listing. Can this be done? If I try to save blank, without an end time, it will
   default to 11:59.
 * I’ve tried the **#_12HSTARTTIME** placeholder, but this still shows the start
   time if the All Day box is checked – I want to use the ‘All day’ function to 
   display the message ‘TBC’ if we don’t yet have a start time.
 * Is there any way around this or am I best to use custom fields and hide the time
   displays altogether?

Viewing 1 replies (of 1 total)

 *  [joneiseman](https://wordpress.org/support/users/joneiseman/)
 * (@joneiseman)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/hiding-end-time/#post-17311717)
 * Add the following code snippet so that #_12HSTARTTIME will not display the start
   time if the “All Day” setting is selected.
 *     ```wp-block-code
       add_filter('em_event_output_placeholder','my_em_styles_placeholders',1,3);
       function my_em_styles_placeholders($replace, $EM_Event, $result){
           switch ( $result ) {
               case '#_12HSTARTTIME':
                   $replace = $EM_Event->event_all_day ?  "" : $this->start()->format('g:i A');
                   break;
           }
           return $replace;
       }
       ```
   
 * You can use the [Code Snippets](https://wordpress.org/plugins/code-snippets/)
   plugin to add this code snippet.

Viewing 1 replies (of 1 total)

The topic ‘Hiding end time’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=1039078)
 * [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/)

## Tags

 * ["all day"](https://wordpress.org/support/topic-tag/all-day/)
 * [time](https://wordpress.org/support/topic-tag/time/)

 * 1 reply
 * 2 participants
 * Last reply from: [joneiseman](https://wordpress.org/support/users/joneiseman/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/hiding-end-time/#post-17311717)
 * Status: resolved