Hello. Thank you for contacting the Toolset support.
The User email filter is not available. If you want to filter User view by user's email, it possible but you ill require to filter the view using a view's shortcode attribute and using the view's filter hook: wpv_filter_user_query
To apply OR we will require to adjust the query on fly and for that I will require to know where you added your user view and from where the URL params coming from?
As well as I will require admin access details.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Hi,
we just found out that the pagination doesn't work correctly when the custom function is enabled.
All names are duplicated multiple times if you press any page button.
May you have a look?
As the ticket is marked resolved, the private access details is automatically removed.
Let me again inform you that User view does not offer the Custom Search but still we workaround it and I will see if I can able to find any workaround for the pagination.
I will require access details first.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
add_action( 'pre_user_query', function( $uqi ) {
global $wpdb;
global $WP_Views;
$views = array( 4870 );
if ( in_array( $WP_Views->current_view, $views ) and isset($_REQUEST['sname']) and !empty($_REQUEST['sname']) ){
$uqi->query_where = $uqi->query_where.' OR (user_email LIKE "%'.$_GET['sname'].'%")';
}
});
And, you have to compromise with Ajax pagination. As we will require search keyword for pagination to display correct results when search keyword is available. So, I've set the pagination settings to "Pagination enabled with manual transition and page reload" and I can see its working for gamil as well.