WordPress.org

Make WordPress Core

Changeset 40930


Ignore:
Timestamp:
06/25/2017 05:47:27 AM (2 years ago)
Author:
DrewAPicture
Message:

Docs: Add more complete documentation about expected values in the $meta parameter for wpmu_create_blog().

See #41017.

File:
1 edited

Legend:

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

    r40612 r40930  
    11481148 * @param string $title   The new site's title.
    11491149 * @param int    $user_id The user ID of the new site's admin.
    1150  * @param array  $meta    Optional. Used to set initial site options.
     1150 * @param array  $meta    Optional. Array of key=>value pairs used to set initial site options.
     1151 *                        If valid status keys are included ('public', 'archived', 'mature',
     1152 *                        'spam', 'deleted', or 'lang_id') the given site status(es) will be
     1153 *                        updated. Otherwise, keys and values will be used to set options for
     1154 *                        the new site. Default empty array.
    11511155 * @param int    $site_id Optional. Only relevant on multi-network installs.
    11521156 * @return int|WP_Error Returns WP_Error object on failure, int $blog_id on success
Note: See TracChangeset for help on using the changeset viewer.