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
350  <tr>
351       <th><label for="pass1"><?php _e('New Password'); ?></label></th>
352       <td><input type="password" name="pass1" id="pass1" size="16" value="" autocomplete="off" /> <?php _e("If you would like to change the password type a new one. Otherwise leave this blank."); ?><br />
353            <input type="password" name="pass2" id="pass2" size="16" value="" autocomplete="off" /> <?php _e("Type your new password again."); ?><br />
354       <?php if ( $is_profile_page ): ?>
355            <div id="pass-strength-result"><?php _e('Strength indicator'); ?></div>
356            <p><?php _e('Hint: Your password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ &amp; ).'); ?></p>
357       <?php endif; ?>
358       </td>
359  </tr>
360  <?php endif; ?>
361  </table>
362  
363  <?php
364       if ( $is_profile_page ) {
365            do_action('show_user_profile');
366       } else {
367            do_action('edit_user_profile');
368       }
369  ?>
370  
371  <?php if (count($profileuser->caps) > count($profileuser->roles)): ?>
372  <br class="clear" />
373       <table width="99%" style="border: none;" cellspacing="2" cellpadding="3" class="editform">
374            <tr>
375                 <th scope="row"><?php _e('Additional Capabilities') ?></th>
376                 <td><?php
377                 $output = '';
378                 foreach($profileuser->caps as $cap => $value) {
379                      if(!$wp_roles->is_role($cap)) {
380                           if($output != '') $output .= ', ';