admin管理员组文章数量:1023758
I'm developing a custom BuddyPress/WordPress Plugin. Here's how a user would normally register.
- A user registers as usual on registration page
- His/Her account is deactivated till he/she clicks on activation link in his/her email
- He/She is sent an activation link through the email he/she registered with
- 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.
I'm developing a custom BuddyPress/WordPress Plugin. Here's how a user would normally register.
- A user registers as usual on registration page
- His/Her account is deactivated till he/she clicks on activation link in his/her email
- He/She is sent an activation link through the email he/she registered with
- 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.
Share Improve this question asked Oct 1, 2015 at 9:32 William OnebWilliam Oneb 613 bronze badges 2- Could an acceptable solution put your custom form in step 1, as extra registration questions asked before email confirmation is sent? – ToniWidmo Commented May 10, 2016 at 10:39
- I don't think so. I would like to just modify step 4. – William Oneb Commented May 17, 2016 at 14:51
1 Answer
Reset to default 1You can add the bp_core_signup_send_activation_key filter to prevent the activation email being sent as follows
add_filter('bp_core_signup_send_activation_key', 'my_bp_core_signup_send_activation_key', 10, 5);
function my_bp_core_signup_send_activation_key($send, $user_id, $user_email, $activation_key, $usermeta) {
return false;
}
I'm developing a custom BuddyPress/WordPress Plugin. Here's how a user would normally register.
- A user registers as usual on registration page
- His/Her account is deactivated till he/she clicks on activation link in his/her email
- He/She is sent an activation link through the email he/she registered with
- 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.
I'm developing a custom BuddyPress/WordPress Plugin. Here's how a user would normally register.
- A user registers as usual on registration page
- His/Her account is deactivated till he/she clicks on activation link in his/her email
- He/She is sent an activation link through the email he/she registered with
- 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.
Share Improve this question asked Oct 1, 2015 at 9:32 William OnebWilliam Oneb 613 bronze badges 2- Could an acceptable solution put your custom form in step 1, as extra registration questions asked before email confirmation is sent? – ToniWidmo Commented May 10, 2016 at 10:39
- I don't think so. I would like to just modify step 4. – William Oneb Commented May 17, 2016 at 14:51
1 Answer
Reset to default 1You can add the bp_core_signup_send_activation_key filter to prevent the activation email being sent as follows
add_filter('bp_core_signup_send_activation_key', 'my_bp_core_signup_send_activation_key', 10, 5);
function my_bp_core_signup_send_activation_key($send, $user_id, $user_email, $activation_key, $usermeta) {
return false;
}
本文标签: How to ModifyChange a BuddypressWordpress Account Activation Process
版权声明:本文标题:How to ModifyChange a BuddypressWordpress Account Activation Process 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745535938a2154959.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论