Update post-types-calendar.widget.php

Added a function to create custom rewrite rules based on the active widget instances