Make WordPress Core

Changeset 48511


Ignore:
Timestamp:
07/20/2020 11:52:59 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve description for add_user_to_blog().

Props stevenlinx.
Fixes #50701.

File:
1 edited

Legend:

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

    r48467 r48511  
    153153
    154154/**
    155  * Adds a user to a blog.
     155 * Adds a user to a blog, along with specifying the user's role.
    156156 *
    157157 * Use the {@see 'add_user_to_blog'} action to fire an event when users are added to a blog.
     
    161161 * @param int    $blog_id ID of the blog the user is being added to.
    162162 * @param int    $user_id ID of the user being added.
    163  * @param string $role    The role you want the user to have
     163 * @param string $role    The role you want the user to have.
    164164 * @return true|WP_Error True on success or a WP_Error object if the user doesn't exist
    165165 *                       or could not be added.
Note: See TracChangeset for help on using the changeset viewer.