WP_User_Query to exclude users with no posts
-
04-11-2019 - |
Question
I see that it is possible to sort a user query by the number of posts each user has, but is it possible to exclude users with zero posts from the result? In the Wp_User_Query class there is a pre_user_query
action, but query strings are a huge weak point, so I'm not sure what sort of filter action I'd want to use here.
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange