wp_install


wp_install ( $blog_title, $user_name, $user_email, $public, $deprecated = '', $user_password = '', $language = '' )

Parameters:
  • (string) $blog_title Site title.
  • (string) $user_name User's username.
  • (string) $user_email User's email.
  • (bool) $public Whether site is public.
  • (string) $deprecated Optional. Not used.
  • (string) $user_password Optional. User's chosen password. Default empty (random password).
  • (string) $language Optional. Language chosen. Default empty.
Returns:
  • (array) Array keys 'url', 'user_id', 'password', and 'password_message'.
Defined at:

Description

Installs the site.

Runs the required functions to set up and populate the database, including primary admin user and initial options.

Related Functions

wp_installing, wp_not_installed, wp_salt, wp_install_defaults, wp_insert_link

Top Google Results

User discussions

wpseek mobile