Welcome, visitor! Log in
 

Source View: autocomplete_users_for_site_admins

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
172     '<p><strong>' . __('For more information:') . '</strong></p>' .
173     '<p>' . __('<a href="http://codex.wordpress.org/Users_Add_New_Screen" target="_blank">Documentation on Adding New Users</a>') . '</p>' .
174     '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
175 );
176
177 wp_enqueue_script('wp-ajax-response');
178 wp_enqueue_script('user-profile');
179
180 if ( is_multisite() && current_user_can( 'promote_users' ) && ! wp_is_large_network( 'users' )
181      && ( is_super_admin() || apply_filters( 'autocomplete_users_for_site_admins', false ) )
182 ) {
183      wp_enqueue_script( 'user-suggest' );
184 }
185
186 require_once( 'admin-header.php' );
187
188 if ( isset($_GET['update']) ) {
189      $messages = array();
190      if ( is_multisite() ) {