• I am setting up WP where there are multiple sites via different database prefixes. I want all the sites to use the same user table, but different user_meta tables (so, users can have different privilage levels on different sites).

    What of course happens is that when a user registers on one site, but logs in on another, there is no user_meta entry for them, and they get the “You do not have sufficient permissions to access this page.” message. What I’d like to do is add code at that point that, if there is a user but no user_meta entry, it creates one with a level 0 privilage.

    What I haven’t found yet is which page generates that above error message. Can somebody clue me in?

    Thanks much!

Viewing 1 replies (of 1 total)
  • You might want to look into making your changes in get_userdata within pluggable-functions.php.

    There’s an if ($metavalues) check there that you could toss an else statement into to provide some default rights.

Viewing 1 replies (of 1 total)

The topic ‘user_meta hack help’ is closed to new replies.