Core Function
View Source on Trac ↗ wp_insert_site()
wp_insert_site( array $data ) Inserts a new site into the database.
Parameters 1 required
| Name / Type | Description |
|---|---|
| array | $data { Data for the new site that should be inserted. Required |
Return Value
((int)
| WP_Error) The new site's ID on success, or error object on failure.
Function Information
Since Version
5.1.0
Source File
wp-includes/ms-site.php
Advertisement