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
366
367 <table class="form-table">
368 <tr>
369      <th><label for="description"><?php _e('Biographical Info'); ?></label></th>
370      <td><textarea name="description" id="description" rows="5" cols="30"><?php echo $profileuser->description; // textarea_escaped ?></textarea><br />
371      <span class="description"><?php _e('Share a little biographical information to fill out your profile. This may be shown publicly.'); ?></span></td>
372 </tr>
373
374 <?php
375 $show_password_fields = apply_filters('show_password_fields', true, $profileuser);
376 if ( $show_password_fields ) :
377 ?>
378 <tr id="password">
379      <th><label for="pass1"><?php _e('New Password'); ?></label></th>
380      <td><input type="password" name="pass1" id="pass1" size="16" value="" autocomplete="off" /> <span class="description"><?php _e("If you would like to change the password type a new one. Otherwise leave this blank."); ?></span><br />
381           <input type="password" name="pass2" id="pass2" size="16" value="" autocomplete="off" /> <span class="description"><?php _e("Type your new password again."); ?></span><br />
382           <div id="pass-strength-result"><?php _e('Strength indicator'); ?></div>
383           <p class="description indicator-hint"><?php _e('Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ &amp; ).'); ?></p>
384      </td>