Hide Recurring events of The Events Calendar plugin

Content Views Pro helps you to show events of The Events Calendar plugin easily.
To show only non-recurrent events, and the first event from a series of recurring events, please add this code to file functions.php in the theme’s folder (or install this plugin Code Snippets then add this code to the “Code” textarea):

// CVPro - Hide recurring events of The Events Calendar plugin
add_filter( 'pt_cv_show_this_post', 'cvp_theme_hide_recurring_the_events_calendar', 100, 1 );
function cvp_theme_hide_recurring_the_events_calendar( $args ) {
	if ( tribe_is_recurring_event( $args->ID ) && !empty( $args->post_parent ) ) {
		$args = false;
	}

	return $args;
}

Best regards,