New User Actions for BP
-
In the beloved wp-fb-autoconnect plugin that allows users to login to BP using Facebook, I think I found an error in how it creates a user. I believe it’s using the WP user creation and misses some of the BP user creation. Hopefully, Andy or someone can tell me if my assumption is correct.
Here’s what the wp-fb-autoconnect plugin uses to create a new user:
$user_login_id = wp_insert_user($user_data);
wp_new_user_notification($user_login_name);
//Tag the user with our meta so we can recognize them next time, without resorting to email hashes
update_usermeta($user_login_id, $jfb_uid_meta_name, $fb_uid);
In another plugin I saw these actions for user creation, but I couldn’t tell if they just built on other BP core items or were the actual actions that needed to be called.
add_action(“user_register”);
add_action(“bp_core_signup_user”);
I also found this one for creating a wpmu user:
wpmucreateuser()
I also checked the documentation and thought it should be in this link, but it wasn’t:
http://codex.buddypress.org/developer-docs/action-reference/
I imagine somewhere in the core is a list of the functions that create a new user, but I’m hoping someone might know which actions need to be called by a plugin to create a BP user properly.
- The topic ‘New User Actions for BP’ is closed to new replies.