bookmark_bordergform_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

Examples

This example lists only the users from the role “administrator”.

add_filter( 'gform_filters_get_users', 'filters_get_users_args' );
function api_get_users_args( $args ) {
    $args['role'] = 'administrator';
    return $args;
}

Placement

This code should be placed in the functions.php file of your active theme.

Source Code

apply_filters( 'gform_filters_get_users', array( 'number' => 200 ) )

This action hook is located in GFCommon::get_entry_info_filter_columns() in common.php