Join our live webinar on March 26th at 10 PM IST to master Acing Event Marketing with WP Event Manager! Learn expert strategies for success. Register now!
You can reach out to support to receive a discount on your purchase.
How can we help?

How to allow comment forms on each event?

In order to enable a comment form on the single event page, please add the following code in the functions.php file:

add_filter( 'event_manager_allowed_comment', 'YOUR_THEME_allowed_comment', 10 );
function YOUR_THEME_allowed_comment($status)
{
	$status = 'open';
	return $status;
}

This will be applicable to all the new events that are posted on the website.

To add the comment form to all the previously added events, you need to add the following code to the functions.php file.

function YOUR_THEME_event_allowed_comment( $open, $post_id ) 
{
    $post_type = get_post_type( $post_id );

    if ( $post_type == 'event_listing' ) {
        $open = true;
    }

    return $open;
}
add_filter( 'comments_open', 'YOUR_THEME_event_allowed_comment', 10 , 2 );
Quick Links
Close
Close