To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )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.
| Line | Code |
|---|---|
| 174 | if ( ! IS_PROFILE_PAGE ) { |
| 175 | if ( current_user_can( 'create_users' ) ) { ?> |
| 176 | <a href="user-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'user' ); ?></a> |
| 177 | <?php } elseif ( is_multisite() && current_user_can( 'promote_users' ) ) { ?> |
| 178 | <a href="user-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add Existing', 'user' ); ?></a> |
| 179 | <?php } |
| 180 | } ?> |
| 181 | </h2> |
| 182 | |
| 183 | <form id="your-profile" action="<?php echo esc_url( self_admin_url( IS_PROFILE_PAGE ? 'profile.php' : 'user-edit.php' ) ); ?>" method="post"<?php do_action('user_edit_form_tag'); ?>> |
| 184 | <?php wp_nonce_field('update-user_' . $user_id) ?> |
| 185 | <?php if ( $wp_http_referer ) : ?> |
| 186 | <input type="hidden" name="wp_http_referer" value="<?php echo esc_url($wp_http_referer); ?>" /> |
| 187 | <?php endif; ?> |
| 188 | <p> |
| 189 | <input type="hidden" name="from" value="profile" /> |
| 190 | <input type="hidden" name="checkuser_id" value="<?php echo $user_ID ?>" /> |
| 191 | </p> |
| 192 | |