apply_filters( 'is_user_member_of_blog', bool $is_member, int $user_id, int $blog_id )
- Since
- 7.1.0
Filters whether the user is a member of a given blog.
Description
This filter only runs when the user and blog have both been resolved to valid records on a multisite installation; it is not invoked for logged-out requests, unknown users, or archived/spammed/deleted sites.
Compatibility
- WordPress
- since 7.1.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in 1 of the 5 tracked releases, added in 7.1.0.
Parameters
$is_memberbool- Whether the user is a member of the blog.
$user_idint- The user ID being checked.
$blog_idint- The blog ID being checked.
Where this hook fires · 1
wp-includes/user.php:1222is_user_member_of_blog()
Source code
* @since 7.1.0 * * @param bool $is_member Whether the user is a member of the blog. * @param int $user_id The user ID being checked. * @param int $blog_id The blog ID being checked. */ return (bool) apply_filters( 'is_user_member_of_blog', $is_member, $user_id, $blog_id );} /** * Adds meta data to a user. * * For historical reasons both the meta key and the meta value are expected to be "slashed" (slashes escaped) on input.Changelog
Introduced in 7.1.0.
Signature, return type and hooks compared across 1 parsed release.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.