How to preset a sidebar widget with default content via script?
You need to do this in two steps. First create the actual widget. Find a widget ID that does not exist, and toss in an extra entry in (off the top of my head) the widget_text option, which corresponds to the text widget config. Off the top of my head, it’ll look something like: $ops … Read more