Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: show_password_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
295 <h3><?php $is_profile_page? _e('About Yourself') : _e('About the user'); ?></h3>
297 <table class="form-table">
298 <tr>
299      <th><label for="description"><?php _e('Biographical Info'); ?></label></th>
300      <td><textarea name="description" id="description" rows="5" cols="30"><?php echo $profileuser->description ?></textarea><br /><?php _e('Share a little biographical information to fill out your profile. This may be shown publicly.'); ?></td>
301 </tr>
303 <?php
304 $show_password_fields = apply_filters('show_password_fields', true);
305 if ( $show_password_fields ) :
306 ?>
307 <tr>
308      <th><label for="pass1"><?php _e('New Password:'); ?></label></th>
309      <td><input type="password" name="pass1" id="pass1" size="16" value="" /> <?php _e("If you would like to change the password type a new one. Otherwise leave this blank."); ?><br />
310           <input type="password" name="pass2" id="pass2" size="16" value="" /> <?php _e("Type your new password again."); ?><br />
311           <?php if ( $is_profile_page ): ?>
312           <p><strong><?php _e('Password Strength:'); ?></strong></p>
313           <div id="pass-strength-result"><?php _e('Too short'); ?></div> <?php _e('Hint: Use upper and lower case characters, numbers and symbols like !"?$%^&amp;( in your password.'); ?>