Skip to:
Content

Opened 2 years ago

Closed 2 years ago

#6641 closed enhancement (invalid)

How to Modify/Change a Buddypress/Wordpress Account Activation Process

Reported by: William_Oneb Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.3.3
Component: Registration Keywords:
Cc:

Description

I'm developing a custom BuddyPress/WordPress Plugin. Here's how a user would normally register.

(1) A user registers as usual on registration page
(2) His/Her account is deactivated till he/she clicks on activation link in his/her email
(3) He/She is sent an activation link through the email he/she registered with
(4) He/She activates his account by clicking on the link

I'd like to modify step 4 above so that even if the user clicks on the activation link, his/her account remains deactivated till he/she fills another form on the site for example, a custom survey form. Once this form is filled successfuly, the user can now be activated.

I'll be programming the custom form myself so that it works the way I want it to, with wordpress/Buddypress actions/filters.

So my question is: How can you modify the WordPress/Buddypress activation Process so that the account remains deactivated till the user fill my custom form?

Here's the main action that I intend to use and it fires as soon as the user clicks the buddypress account activation link in their email:

bp_core_signup_user

I'll appreciate if someone can point in the right direction on modifying the Buddypress/Wordpress activation process.

Please help. This is where I'm stuck.

Note: This patch (Disabling Registration) would help captcha/nocaptcha plugin authors as discussed here: https://buddypress.trac.wordpress.org/ticket/3443

Change History (4)

#1 @DJPaul
2 years ago

Good question. I would start by trying to block activation until your other criteria is met, rather than faking a user hasn't been activated later in the process (I don't think that's possible to do right now without serious hacking), so maybe the bp_core_screen_activation() in the bp_core_activate_account filter?

#2 @DJPaul
2 years ago

  • Keywords reporter-feedback added

#3 @modemlooper
2 years ago

override the link in the email to go to your custom "activation" form on the site and then you activate the user.

#4 @DJPaul
2 years ago

  • Keywords needs-patch reporter-feedback removed
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Going to close this because this was more of a support request rather than a bug report, and we left some feedback, and heard nothing.

Note: See TracTickets for help on using tickets.