WP_Error could not be converted to string
There are few problems with your code. First of all, let’s see at wpmu_create_blog function: wpmu_create_blog( string $domain, string $path, string $title, int $user_id, array $meta = array(), int $network_id = 1 ) So you use it incorrectly. It’s 5th argument is $meta and you put $network_id in there… Another problem is that this function … Read more