autocomplete_users_for_site_admins WordPress Filter Hook

This hook is called when a user is attempting to autocomplete a list of users for site admins. It is used to determine which users should be included in the autocomplete list.

apply_filters( 'autocomplete_users_for_site_admins', bool $enable ) #

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


Parameters

$enable

(bool)Whether to enable auto-complete for non-super admins. Default false.


Top ↑

Source

File: wp-admin/user-new.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.