Creating members outside of theme
-
Hi. I’m writing a webhook that’s intended to create a user and register them in BP. After examining function bp_core_screen_signup() in buddypress/bp-members/screens/register.php, I thought I could just stuff values I receive into the correct $_POST variables and call the function, but it immediately returns after this statement near the top:
if ( ! bp_is_current_component( 'register' ) || bp_current_action() ) {So I have two questions:
- Am I going in the right direction by emulating a post and calling bp_core_screen_signup() directly? And if so…
- What is the correct/proper/best way to set the current component and action?
Thank you.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Creating members outside of theme’ is closed to new replies.