Title: user_meta hack help
Last modified: August 18, 2016

---

# user_meta hack help

 *  [josephcizek](https://wordpress.org/support/users/josephcizek/)
 * (@josephcizek)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/user_meta-hack-help/)
 * 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)

 *  [Brian Layman](https://wordpress.org/support/users/brianlayman/)
 * (@brianlayman)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/user_meta-hack-help/#post-437757)
 * 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.

## Tags

 * [multiple](https://wordpress.org/support/topic-tag/multiple/)
 * [Sites](https://wordpress.org/support/topic-tag/sites/)
 * [users](https://wordpress.org/support/topic-tag/users/)
 * [user_meta](https://wordpress.org/support/topic-tag/user_meta/)

 * 1 reply
 * 2 participants
 * Last reply from: [Brian Layman](https://wordpress.org/support/users/brianlayman/)
 * Last activity: [19 years, 10 months ago](https://wordpress.org/support/topic/user_meta-hack-help/#post-437757)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
