Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I need hook which is working before signup data save on new user and blog registration on BP or WP 3.0.3. Any help would be greatly appreciated.

share|improve this question
add comment

2 Answers

This one?

do_action( 'register_post', $sanitized_user_login, $user_email, $errors );

http://phpxref.ftwr.co.uk/wordpress/nav.html?wp-login.php.source.html line 316

share|improve this answer
add comment

You need to look inside the files and follow the program flow to find out about hooks and global variables to interact with.

Multi-Site Setup is a mess hook-wise, this can be pretty hacky. Some hints to far:

Standard User Registration (Single-Site)

File: wp-login.php

Function: register_new_user()

Hooks: register_post, registration_errors

Site Registration (Multi-Site)

File: wp-signup.php

Functions: validate_another_blog_signup(), signup_another_blog()

Hook: wpmu_validate_user_signup

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.