New Blog Template customise wp_options

Hi,

I'm using the New Blog Templates plugin to use a template of an existing site and create new instances of that site.

I'm also using the 'wpmu_new_blog' hook to default the site_url and sitehome to include https in the url (defaults to http), and that is working fine so I know the hook is working.

However, some of the plugin options that are being copied across in the 'wp_options' table contain url references to the original template blog, and when I try to use that hook to change these to the new sites url it doesn't seem to work.

I'm guessing it's because it copies the plugins options after that hook has fired and so they do in fact get set on that hook, but then they get overwritten again.

Is there any way to do this easily? Is there a hook within New Blog Templates that I can use?

Also, the way I'm adding the https feels a bit 'hacky', is there a better way of doing this?

Thanks,
Ali