The autocomplete_users_for_site_admins filter allows you to enable user auto-complete for non-super admins in Multisite.
It was added in 3.4.
It is evaluated in wp_ajax_autocomplete_user() in the wp-admin/includes/ajax-actions.php file.
autocomplete_users_for_site_admins accepts a single argument:
- bool
true|falseWhether todie()for non-super admin users. Default is false.
Example:
The following example would enable user auto-complete in Multisite for users with the promote_users capability.
View the code example on Gist.