| CARVIEW |
Select Language
HTTP/2 301
date: Sat, 27 Dec 2025 19:46:48 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/gform_filters_get_users/
server: cloudflare
strict-transport-security: max-age=604800
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN
x-frame-options: SAMEORIGIN
content-security-policy: frame-ancestors 'self';
referrer-policy: no-referrer
referrer-policy: strict-origin-when-cross-origin
x-redirect-by: WordPress
fastcgi-cache: MISS
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=6nRm9nOG6yUU4jX8B6AfXKcn02UalMJE4sMlSr6%2BXkK0%2BGqqgu3KjQxB5XVx%2B1557YE%2FcC3u3pEVHVRgNuy7JKWEfSvzw06odmBVoxQBdkOLkUba"}]}
cf-ray: 9b4b5375e800c1ce-BLR
HTTP/2 200
date: Sat, 27 Dec 2025 19:46:48 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
vary: Accept-Encoding
strict-transport-security: max-age=604800
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN
x-frame-options: SAMEORIGIN
content-security-policy: frame-ancestors 'self';
referrer-policy: no-referrer
referrer-policy: strict-origin-when-cross-origin
link: ; rel="https://api.w.org/"
link: ; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
fastcgi-cache: HIT
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=JRU99EBbvD%2F%2BzTwGlVZSufHGYJeWZc6789cFV5Kka86DFP0v91J2GeQoESiSFvexKiQqW2m4dZLwSQ10dyhSXbUEkthWusu%2F8klFVje1CGJh7Tcz"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 9b4b537c4937c1ce-BLR
gform_filters_get_users - Gravity Forms Documentation
gform_filters_get_users
Description
Use this filter to control the list of users available in the filters on the entry list, export entries conditional logic and results pages.
Usage
add_filter( 'gform_filters_get_users', 'your_function_name' );
Parameters
| Parameter | Type | Description |
|---|---|---|
| $args | array | The array of options to use when filtering the users. See the get_users() Function Reference for further details. |
Examples
This example lists only the users from the role “administrator”.
add_filter( 'gform_filters_get_users', 'filters_get_users_args' );
function filters_get_users_args( $args ) {
$args['role'] = 'administrator';
return $args;
}
Placement
This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.
See also the PHP section in this article: Where Do I Put This Code?
Source Code
apply_filters( 'gform_filters_get_users', array( 'number' => 200 ) );
This filter is located in GFCommon::get_entry_info_filter_columns() in common.php