Login in Redirect Multisite users

I'v followed the thread on this topic (https://premium.wpmudev.org/forums/topic/login-redirect-multisite), downloaded the plugin code from Timothy and see that I'm supposed to paste in the the Blogs MU theme's function php file. Where in the file do I paste it?
Thanks,