Remove Archives from the Calendar Page Title in The Events Calendar

Remove Archives from the Calendar Page Title in The Events Calendar on child sites.

Snippet Type

Execute on Child Sites

Snippet

add_filter( 'get_the_archive_title', function ( $title ) {
  if ( is_post_type_archive( 'tribe_events' ) ) {
    $title = sprintf( __( '%s' ), post_type_archive_title( '', false ) );
  }
  return $title;    
});