PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, July 3, 2022

[FIXED] How can a user have user role privileges that the user has in the sub-site, in which the user is member of?

 July 03, 2022     multisite, user-management, wordpress, wordpress-roles     No comments   

Issue

e.g. a User John is registered from and is a member of "SITE A" in a multisite network, where his assigned role is "Charter Member". So, what I want is that when JOHN visits "SITE B" he has the privileges (i.e. I can get his role) as he has in "SITE A". But also I don't want to make JOHN member of "SITE B"

By default WordPress stores user capabilities/role in user_meta table but with site prefix like wp_3. Meaning that user role is site-specific.


Solution

please check the plugin "WP Multisite User Sync" in wordpress codex



Answered By - Pixlogix
Answer Checked By - Senaida (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

1,241,463

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © 2025 PHPFixing