Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I want to trigger a function in a plugin when a new sub-blog is created in a multisite set up of WordPress. Is it possible? If so, to which action/filter should I hook?

The motivation here is to modify the new sub-blog blog it has a preset arrangment of settings, theme, plugin options, plugin activations, content set up, etc.

If there aren't action/hooks for this purpose are there any other ways to accomplish this?

share|improve this question
    
How about use a plugin that does this already? –  andrea_r Nov 14 '10 at 13:31

1 Answer 1

up vote 1 down vote accepted

U guess you can use the activate_blog hook

share|improve this answer
    
I am not able to find any such hook in the wordpress source code. Could you point out which file it is in? –  rsman Nov 14 '10 at 12:16
    
wp-admin/ms-edit.php line 402 –  Rarst Nov 14 '10 at 12:59
    

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.