How can I enable specific themes and plugins for new blogs that have been created with wpmu_create_blog
? I'd like to set the themes and plugins in code rather than having a person manually set them in the network administration section (i.e. not in http://domain/wp-admin/network/site-themes.php?id=xx
).
Thanks!
Update: Actually I think I may have figured part of this out. wpmu_create_blog
has a $meta
property. This property can be set to an associative array with a key of 'allowedthemes'. That key's value should be set to an associative array with keys:values = 'theme-name-or-id':true. I still need to set the starting theme for this blog and set plugins, which must be similar. Is this even a good approach?