Top Members widget

2.83K viewsThemes
0

Hi, could you please advise which file/function can be modified to change the “top members” query? I think currently it is using highest reputation points?¬†We’d like to add our own logic.

0

Hello, You can try this:

$user_args = array(
	'ap_query'     => true,
	'role__not_in' => [ 'administrator', 'ap_moderator' ],
	'number'       => 20,
);

$ap_user_query = get_users( $user_args );
commented on answer

Thanks, Rahul. Is it possible to modify inside the Top Users widget file? Or copy to child theme to modify?