Core Function
View Source on Trac ↗ wp_install()
wp_install(
mixed $blog_title,
mixed $user_name,
mixed $user_email,
mixed $is_public,
mixed $deprecated = '',
mixed $user_password = '',
mixed $language = ''
) Installs the site.
Parameters 4 required
| Name / Type | Description |
|---|---|
| $blog_title string | Site title. Required |
| $user_name string | User's username. Required |
| $user_email string | User's email. Required |
| $is_public bool | Whether the site is public. Required |
| $deprecated string | Optional. Not used. |
| $user_password string | Optional. User's chosen password. Default empty (random password). |
| $language string | Optional. Language chosen. Default empty. |
Return Value
(array)
array {
Data for the newly installed site.
Function Information
Since Version
2.1.0
Source File
wp-admin/includes/upgrade.php
Advertisement