Accessing Discourse user avatar in WP functions.php

@simon was the client-mode hook ever implemented?