ACF_Ajax_Query_Users::get_argspublicACF 5.7.2

Returns an array of args for this query.

Method of the class: ACF_Ajax_Query_Users{}

Hooks from the method

Returns

Array.

Usage

$ACF_Ajax_Query_Users = new ACF_Ajax_Query_Users();
$ACF_Ajax_Query_Users->get_args( $request );
$request(array) (required)
The request args.

Changelog

Since 5.7.2 Introduced.

ACF_Ajax_Query_Users::get_args() code ACF 6.8.8

public function get_args( $request ) {
	$args = array(
		'number' => $this->per_page,
		'paged'  => $this->page,
	);

	if ( $this->is_search ) {
		$args['search'] = "*{$this->search}*";
	}

	/**
	 * Filters the query args.
	 *
	 * @since 5.8.1
	 *
	 * @param array          $args    The query args.
	 * @param array          $request The query request.
	 * @param ACF_Ajax_Query $query   The query object.
	 */
	return apply_filters( 'acf/ajax/query_users/args', $args, $request, $this );
}