Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WP_User_Query: has_published_posts is not working #116

Open
1 task done
yarovikov opened this issue Dec 16, 2024 · 0 comments
Open
1 task done

WP_User_Query: has_published_posts is not working #116

yarovikov opened this issue Dec 16, 2024 · 0 comments

Comments

@yarovikov
Copy link

Describe the bug

Hi there.
Seems, has_published_posts is not working.
I'm getting different count of users when ep_integrate false and or true. In my case ~9000 users vs ~1 mil

Steps to Reproduce

Use this code

$args = [
  'has_published_posts' => ['post'],
  'ep_integrate' => true,
];

$query = new WP_User_Query($args);

$user_count = $query->get_total(); // check count with ep_integrate  false and true

Screenshots, screen recording, code snippet

No response

Environment information

No response

WordPress information

WP 6.7.1
ElasticPress 5.4.1
ElasticPress Labs 2.3.1

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant