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 ?
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