WP hooks navigation: Home/browse • Actions index • Filters index
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 |
---|---|
183 | if ( ! IS_PROFILE_PAGE ) { |
184 | if ( current_user_can( 'create_users' ) ) { ?> |
185 | <a href="user-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'user' ); ?></a> |
186 | <?php } elseif ( is_multisite() && current_user_can( 'promote_users' ) ) { ?> |
187 | <a href="user-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add Existing', 'user' ); ?></a> |
188 | <?php } |
189 | } ?> |
190 | </h2> |
191 |
|
192 | <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'); ?>> |
193 | <?php wp_nonce_field('update-user_' . $user_id) ?> |
194 | <?php if ( $wp_http_referer ) : ?> |
195 | <input type="hidden" name="wp_http_referer" value="<?php echo esc_url($wp_http_referer); ?>" /> |
196 | <?php endif; ?> |
197 | <p> |
198 | <input type="hidden" name="from" value="profile" /> |
199 | <input type="hidden" name="checkuser_id" value="<?php echo $user_ID ?>" /> |
200 | </p> |
201 |
|