can_add_user_to_blog

Advertisement

Summery Summery

Filters whether a user should be added to a site.

Syntax Syntax

apply_filters( 'can_add_user_to_blog', bool|WP_Error $retval, int $user_id, string $role, int $blog_id )

Parameters Parameters

$retval

True if the user should be added to the site, false or error object otherwise.

$user_id

User ID.

$role

User role.

$blog_id

Site ID.

Source Source

File: wp-includes/ms-functions.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.9.0 Introduced.

Advertisement

Leave a Reply