In reply to Kristin.

https://gist.github.com/robincornett/cb3fd0024fd6eae6eff58da421f722f7#file-functions-php