Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: signup_extra_fields

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
170      <label for="user_email"><?php _e( 'Email&nbsp;Address:' ) ?></label>
171      <?php if ( $errmsg = $errors->get_error_message('user_email') ) { ?>
172           <p class="error"><?php echo $errmsg ?></p>
173      <?php } ?>
174      <input name="user_email" type="text" id="user_email" value="<?php  echo esc_attr($user_email) ?>" maxlength="200" /><br /><?php _e('We send your registration email to this address. (Double-check your email address before continuing.)') ?>
175      <?php
176      if ( $errmsg = $errors->get_error_message('generic') ) {
177           echo '<p class="error">' . $errmsg . '</p>';
178      }
179      do_action( 'signup_extra_fields', $errors );
180 }
181
182 /**
183  * Validate user signup name and email
184  *
185  * @since MU
186  *
187  * @uses wpmu_validate_user_signup() to retrieve an array of user data
188  * @return array Contains username, email, and error messages.