What hook is used in Blog Templates to allow selection on wp-register?

What hook is used on New Blog templates to give users the option to pick a template on Wp-register?

I am trying to use this outside the box, and a simple "heres what its doing" post could help me get started :slight_smile: