WordPress.org

Make WordPress Core

Changeset 45236


Ignore:
Timestamp:
04/17/2019 08:56:18 PM (8 months ago)
Author:
jeremyfelt
Message:

Docs: Add arguments passed by wp_insert_site() to wp_initialize_site().

Props codemascot.
Fixes #45061.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-site.php

    r44925 r45236  
    3131 *     @type int    $deleted      Whether the site is deleted. Default 0.
    3232 *     @type int    $lang_id      The site's language ID. Currently unused. Default 0.
     33 *     @type int    $user_id      User ID for the site administrator. Passed to the
     34 *                                `wp_initialize_site` hook.
     35 *     @type string $title        Site title. Default is 'Site %d' where %d is the site ID. Passed
     36 *                                to the `wp_initialize_site` hook.
     37 *     @type array  $options      Custom option $key => $value pairs to use. Default empty array. Passed
     38 *                                to the `wp_initialize_site` hook.
     39 *     @type array  $meta         Custom site metadata $key => $value pairs to use. Default empty array.
     40 *                                Passed to the `wp_initialize_site` hook.
    3341 * }
    3442 * @return int|WP_Error The new site's ID on success, or error object on failure.
Note: See TracChangeset for help on using the changeset viewer.