pre_get_blogs_of_user

pre_get_blogs_of_user

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('pre_get_blogs_of_user') is found 1 times:

  • /wp-includes/user.php line 953
    	 * @param int           $user_id User ID.
    	 * @param bool          $all     Whether the returned array should contain all sites, including
    	 *                               those marked 'deleted', 'archived', or 'spam'. Default false.
    	 */
    	$sites = apply_filters( 'pre_get_blogs_of_user', null, $user_id, $all );
    
    	if ( null !== $sites ) {
    		return $sites;
    	}
    
    	$keys = get_user_meta( $user_id );