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 created a widget for sidebar and footer in wordpress multiuser site. I want to make the widgets assigned in MAIN WIDGET AREA and SECONDARY WIDGET AREA by default when new site's created.

Is there anyway to do it ?

I am using wordpress 3.7.1

I tried this method, but didn't works, is it syntax problem calling that function ?

share|improve this question
    
Can you also let us know, what have you tried till now? –  Maruti Mohanty Nov 12 '13 at 8:19
    
I created the widget and now manually assign to each sites!!! –  Ashok KS Nov 12 '13 at 8:29
    
I meant what have you tried to assign the widgets on new site's creation. What have you researched on this ? What have you found over web? –  Maruti Mohanty Nov 12 '13 at 8:41
1  
wpmu_new_blog is the hook you can build your function on. You will have to find a way to do this. Sharing a blog which does something else using the same hook when a sub site is created drujoopress.wordpress.com/2013/11/12/… –  Maruti Mohanty Nov 12 '13 at 9:36
1  
@MarutiMohanty Its working, please type as answer –  Ashok KS Jan 20 at 12:02

1 Answer 1

up vote 0 down vote accepted

wpmu_new_blog is the hook you can build your function on.

You will have to find a way to do this.

Sharing a blog which does something else using the same hook when a sub site is created.

Link to the blog

share|improve this answer

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.