Welcome, visitor! Log in
 

Source View: show_user_profile

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.

  • Action hooks look like this: do_action( "hook_name" )
  • Filter hooks look like this: apply_filters( "hook_name", "what_to_filter" ).

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
343  if ( $show_password_fields ) :
344  ?>
345  <tr id="password">
346       <th><label for="pass1"><?php _e('New Password'); ?></label></th>
347       <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 />
348            <input type="password" name="pass2" id="pass2" size="16" value="" autocomplete="off" /> <span class="description"><?php _e("Type your new password again."); ?></span><br />
349            <div id="pass-strength-result"><?php _e('Strength indicator'); ?></div>
350            <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>
351       </td>
352  </tr>
353  <?php endif; ?>
354  </table>
355  
356  <?php
357       if ( IS_PROFILE_PAGE )
358            do_action( 'show_user_profile', $profileuser );
359       else
360            do_action( 'edit_user_profile', $profileuser );
361  ?>
362  
363  <?php if ( count($profileuser->caps) > count($profileuser->roles) && apply_filters('additional_capabilities_display', true, $profileuser) ) { ?>
364  <br class="clear" />
365       <table width="99%" style="border: none;" cellspacing="2" cellpadding="3" class="editform">
366            <tr>
367                 <th scope="row"><?php _e('Additional Capabilities') ?></th>
368                 <td><?php
369                 $output = '';
370                 foreach ( $profileuser->caps as $cap => $value ) {
371                      if ( !$wp_roles->is_role($cap) ) {
372                           if ( $output != '' )
373                                $output .= ', ';