WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

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

Your Answer


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.