I have a custom master page applied to my site collection. When i create a new sub site, it doesn't come with this custom master page applied to it. I can always go to /_layouts/changesitemasterpage.aspx on my root site and check the options "Reset all subsites to inherit this Site Master Page setting" and it will apply the same master to every single subsite.
I'm trying to make a feature that automatically does that when i create a new subsite. Is that possible to be done?