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

Filters whether a user should be added to a site.

Description Description

Parameters Parameters


(bool|WP_Error) True if the user should be added to the site, false or error object otherwise.


(int) User ID.


(string) User role.


(int) Site ID.

Top ↑

Source Source

File: wp-includes/ms-functions.php

View on Trac

Top ↑

Changelog Changelog

Version Description
4.9.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.