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.
This hook occurs 2 times in this file.
Line | Code |
---|---|
158 | add_screen_option( 'per_page', array( 'label' => _x( 'Users', 'users per page (screen options)' ) ) ); |
159 |
|
160 | $site_url_no_http = preg_replace( '#^http(s)?://#', '', get_blogaddress_by_id( $id ) ); |
161 | $title_site_url_linked = sprintf( __('Edit Site: <a href="%1$s">%2$s</a>'), get_blogaddress_by_id( $id ), $site_url_no_http ); |
162 | $title = sprintf( __('Edit Site: %s'), $site_url_no_http ); |
163 |
|
164 | $parent_file = 'sites.php'; |
165 | $submenu_file = 'sites.php'; |
166 |
|
167 | if ( ! wp_is_large_network( 'users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) ) |
168 | wp_enqueue_script( 'user-suggest' ); |
169 |
|
170 | require( ABSPATH . 'wp-admin/admin-header.php' ); ?> |
171 |
|
172 | <script type='text/javascript'> |
173 | /* <![CDATA[ */ |
174 | var current_site_id = <?php echo $id; ?>; |
175 | /* ]]> */ |
176 | </script> |
Line | Code |
239 | <form method="post" action="site-users.php?action=update-site"> |
240 | <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" /> |
241 |
|
242 | <?php $wp_list_table->display(); ?> |
243 |
|
244 | </form> |
245 |
|
246 | <?php do_action( 'network_site_users_after_list_table', '' );?> |
247 |
|
248 | <?php if ( current_user_can( 'promote_users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) ) : ?> |
249 | <h3 id="add-existing-user"><?php _e( 'Add Existing User' ); ?></h3> |
250 | <form action="site-users.php?action=adduser" id="adduser" method="post"> |
251 | <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" /> |
252 | <table class="form-table"> |
253 | <tr> |
254 | <th scope="row"><?php _e( 'Username' ); ?></th> |
255 | <td><input type="text" class="regular-text wp-suggest-user" name="newuser" id="newuser" /></td> |
256 | </tr> |
257 | <tr> |