gpls_rules_get_users_args

  1. Description
  2. Usage
  3. Parameters
  4. Example
    1. Set the Number of Results to Return When Fetching Users to Display in the User Rule.
  5. Since

Description

Filter the arguments that will be passed to get_users() when fetching users to display in the User rule.

Usage

add_filter( 'gpls_rules_get_users_args', 'my_custom_function' );

Parameters

  • args array

    An array of WP_User_Query args.

Example

Set the Number of Results to Return When Fetching Users to Display in the User Rule.

add_filter( 'gpls_rules_get_users_args', function( $args ) {
     //Change 30 to the number users you want to return
	$args['number'] = 30;
	return $args;
} );

Since

This filter is available since GP Limit Submissions 1.0.