0
votes
1answer
40 views

Get users from all/specific blog by user_role and current_user role

Something I've needed and think a fair few people might need as well is: getting users from all or a specific blog based on the user_role's of the accounts they wish to see, while also differentiating ...
1
vote
1answer
77 views

How to store custom user data on the database?

I'm developing a WP multi-site network which have a goal of 10,000 sub blogs. The site needs to store custom data related to the user. There are additional 20 fields of data for each user. What is the ...
0
votes
1answer
49 views

Multisite - Echo admins profile meta

I'm having a problem with echoing the admin's profile meta in a custom post type template. It used to work, but for some reason it's not working anymore. I'm not aware of any changes made that would ...
0
votes
1answer
64 views

How does adding custom meta to signup form work?

Following along with the answer posted here, How to add Custom Blog Options to new blog setup form? I am attempting to understand why the custom meta is added to the options table for the blog as ...
0
votes
1answer
51 views

Display site admin profile fields in header.php

I am working on a multisite setup and Im trying to display some meta from the site owner's profile. I tried the following code but it is echoing the super admin's meta instead of the current site ...
1
vote
1answer
113 views

Query users by capability - uninstall/deactivate callback

The situation Running on MU, I'm writing an open source/publically and freely available plugin. As I used add_screen_option() to allow users to easily setup the admin page to their likings, I'm left ...
0
votes
1answer
233 views

Exclude main blog from get_blogs_of_user

I use WordPress Multisite and in the sidebar i have a box that shows a list of blogs the logged in user is a member of. I'm looking for a way to exclude the mainblog from this list. The main blog ID ...
0
votes
2answers
429 views

Solving a get_user_meta() problem in Multisite

I am currently building a network of blogs for individual real estate agents. Currently, a broker will have a main site, with agents sites added as subdirectories, e.g., www.example.com and ...
3
votes
2answers
1k views

get_user_meta() to Return User Meta Only for Current Blog in Multi Site

I've written a plugin that allows users to bookmark their favorite posts, but have run into a small problem when using it on a multisite network. Each time a post is bookmarked, the ID of that post ...
1
vote
1answer
200 views

How is a user's primary blog determined?

The wp_usermeta database table has a primary_blog meta field for each user. Where is the value for that field set in the Admin Panel, and how can I override the default value?