How to hook WP initialization without modifying functions.php

If you’re running a multisite and need an upgrade safe way then wrapping those custom functionality into a plugin would be a better choice.