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
179      if ($edituser->user_idmode=="namefl")
180      echo ' selected="selected"'; ?>><?php echo $edituser->user_firstname." ".$edituser->user_lastname ?></option>
181                     <option value="namelf"<?php
182      if ($edituser->user_idmode=="namelf")
183      echo ' selected="selected"'; ?>><?php echo $edituser->user_lastname." ".$edituser->user_firstname ?></option>
184                </select>
185           </td>
186      </tr>
187 <?php
188 $show_password_fields = apply_filters('show_password_fields', true);
189 if ( $show_password_fields ) :
190 ?>
191      <tr>
192           <th scope="row"><?php _e('New <strong>Password</strong> (Leave blank to stay the same.)') ?></th>
193           <td><input type="password" name="pass1" size="16" value="" />
194                <br />
195                <input type="password" name="pass2" size="16" value="" /></td>
196      </tr>
197 <?php endif; ?>