wp_insert_site


wp_insert_site ( $data )

Parameters:
  • (array) $data { Data for the new site that should be inserted.
Returns:
  • (int|WP_Error) The new site's ID on success, or error object on failure.
Defined at:

Description

Inserts a new site into the database.

Related Functions

wp_insert_term, wp_insert_user, wp_insert_post, wp_insert_link, wp_get_sites

Top Google Results

User discussions

wpseek mobile