autocomplete_users_for_site_admins filter-hookWP 3.4.0

Filters whether to enable user auto-complete for non-super admins in Multisite.

Usage

add_filter( 'autocomplete_users_for_site_admins', 'wp_kama_autocomplete_users_for_site_admins_filter' );
function wp_kama_autocomplete_users_for_site_admins_filter( $enable ){
	// filter...

	return $enable;
}
$enable(true|false)
Whether to enable auto-complete for non-super admins.
Default: false

Changelog

Since 3.4.0 Introduced.

Where the hook is called

In file: /wp-admin/user-new.php
autocomplete_users_for_site_admins
wp-admin/user-new.php 310
&& ( current_user_can( 'manage_network_users' ) || apply_filters( 'autocomplete_users_for_site_admins', false ) )
wp-admin/includes/ajax-actions.php 268
if ( ! current_user_can( 'manage_network_users' ) && ! apply_filters( 'autocomplete_users_for_site_admins', false ) ) {

Where the hook is used in WordPress

Usage not found.