mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-07 09:49:04 +00:00
Docs: Add arguments passed by wp_insert_site() to wp_initialize_site().
Props codemascot. Fixes #45061. git-svn-id: https://develop.svn.wordpress.org/trunk@45236 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -30,6 +30,14 @@
|
||||
* @type int $spam Whether the site is spam. Default 0.
|
||||
* @type int $deleted Whether the site is deleted. Default 0.
|
||||
* @type int $lang_id The site's language ID. Currently unused. Default 0.
|
||||
* @type int $user_id User ID for the site administrator. Passed to the
|
||||
* `wp_initialize_site` hook.
|
||||
* @type string $title Site title. Default is 'Site %d' where %d is the site ID. Passed
|
||||
* to the `wp_initialize_site` hook.
|
||||
* @type array $options Custom option $key => $value pairs to use. Default empty array. Passed
|
||||
* to the `wp_initialize_site` hook.
|
||||
* @type array $meta Custom site metadata $key => $value pairs to use. Default empty array.
|
||||
* Passed to the `wp_initialize_site` hook.
|
||||
* }
|
||||
* @return int|WP_Error The new site's ID on success, or error object on failure.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user