Skip to:
Content
Pages
Categories
Search
Top
Bottom

Signup Usermeta in Single User Environment Issues

  • Avatar of hardlyneutral
    hardlyneutral
    Participant

    @hardlyneutral

    I’m working on a plugin that grabs some dynamically generated fields on the user registration page (these fields don’t exist in xprofile) and adds them to the user’s meta information. I’ve got it work in a multisite environment (MU 2.9.2 + BuddyPress 1.2.5.2) with the code below:

    function bp_custom_stuff( $usermeta ) {
    $usermeta = $_POST;
    return $usermeta;
    }
    add_filter( ‘bp_signup_usermeta’, ‘bp_custom_stuff’ );

    That code adds the info the meta section in wp_signups just fine. I can’t get it to work in a single user environment (WordPress 2.9.2 + BuddyPress 1.2.5.2). The array of data from the fields doesn’t show up in wp_usermeta. Any thoughts?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of hardlyneutral
    hardlyneutral
    Participant

    @hardlyneutral

    UPDATE: It looks like $usermeta is getting the string that should go in ‘meta_key’ and the array of data that would go in ‘meta_value’, but it is not actually doing the insert. Is this something goofy with a validation against xprofile fields?

    Avatar of hardlyneutral
    hardlyneutral
    Participant

    @hardlyneutral

    SOLVED: The function called $user_id first and was assigning it to my $usermeta variable. I ended up using get_usermeta with $user_id as the reference.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.