Update template-functions.php

Allow the checked option to be filtered.