Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to add a user to a group from a HTTP POST script?


  • eberswine
    Participant

    @eberswine

    I have e-junkie products with a HTTP POST back to my site to create a user by email and send them an email thanking them with their info. Everything works great, but now I just installed buddypress and want to automatically attach a GROUP to certain products —

    I am using update_user_meta( $user_id, ”, ” );

    What is the equivalent for Buddy PRess Groups ? Thanks!!

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

  • eberswine
    Participant

    @eberswine

    hmm, can I just use this?
    `groups_update_groupmeta( $group_id, $meta_key, $meta_value ); `

    What is meta key and meta value though?


    eberswine
    Participant

    @eberswine

    I found this action too — but need some assistance!
    do_action( ‘groups_join_group’, $group_id, $user_id )

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to add a user to a group from a HTTP POST script?’ is closed to new replies.
Skip to toolbar