WordPress.org

Make WordPress Core

Changeset 47854


Ignore:
Timestamp:
05/25/2020 02:21:50 PM (17 months ago)
Author:
SergeyBiryukov
Message:

Docs: Improve documentation for add_existing_user_to_blog().

Props stevenlinx.
Fixes #50243.

File:
1 edited

Legend:

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

    r47808 r47854  
    21632163 * @since MU (3.0.0)
    21642164 *
    2165  * @param array $details User details.
     2165 * @param array $details {
     2166 *     User details. Must at least contain values for the keys listed below.
     2167 *
     2168 *     @type int    $user_id The ID of the user being added to the current blog.
     2169 *     @type string $role    The role to be assigned to the user.
     2170 * }
    21662171 * @return true|WP_Error|void True on success or a WP_Error object if the user doesn't exist
    21672172 *                            or could not be added. Void if $details array was not provided.
Note: See TracChangeset for help on using the changeset viewer.