How do i place same widgets multiple time by default on theme activation?
You’re quite off with your code. That’s not how widgets are stored (at least not since 2.8), plus you’re trying to inject arrays into strings! Setting default widgets (at least in the admin) seems a complex & messy task. I would much rather opt for default widgets in the display logic instead. <?php if ( … Read more