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