Action hook 'preprocess_signup_form'

in WP Core File wp-signup.php at line 1009

View Source

preprocess_signup_form

Action Hook
Description
Fires when the site sign-up form is sent.

Hook Information

File Location wp-signup.php View on GitHub
Hook Type Action
Line Number 1009

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

Basic Usage
<?php
// Hook into preprocess_signup_form
add_action('preprocess_signup_form', 'my_custom_function');

function my_custom_function() {
    // Your custom code here
}

Source Code Context

wp-signup.php:1009 - How this hook is used in WordPress core
<?php
1004  			/**
1005  			 * Fires when the site sign-up form is sent.
1006  			 *
1007  			 * @since 3.0.0
1008  			 */
1009  			do_action( 'preprocess_signup_form' );
1010  			if ( is_user_logged_in() && ( 'all' === $active_signup || 'blog' === $active_signup ) ) {
1011  				signup_another_blog( $newblogname );
1012  			} elseif ( ! is_user_logged_in() && ( 'all' === $active_signup || 'user' === $active_signup ) ) {
1013  				signup_user( $newblogname, $user_email );
1014  			} elseif ( ! is_user_logged_in() && ( 'blog' === $active_signup ) ) {

PHP Documentation

<?php
/**
			 * Fires when the site sign-up form is sent.
			 *
			 * @since 3.0.0
			 */
Quick Info
  • Hook Type: Action
  • Parameters: 0
  • File: wp-signup.php
Related Hooks

Related hooks will be displayed here in future updates.