How can we help?

Hide Comment on Single Event Listing Page

In order to disable/hide comment section on your Single event listing page,

  1. Open your child theme,
  2. Add the code into the funtions.php file
    function wpem_comment_disable( $open, $post_id ) 
        $post_type = get_post_type( $post_id );
        if ( $post_type == 'event_listing' ) {
            return false;
        return true;
    add_filter( 'comments_open', 'wpem_comment_disable', 10 , 2 );
  3. Save
Was this article helpful?
How can we improve this article?
How Can We Improve This Article?
Previous Hide and Add column from the Event Dashboard
Next How To Add My Registrations on My Account Page
Quick Links