How to list user by customer meta data using wp_user_query
I have these two custom meta:
first_child_birthday(format:10-15-2003) and second_child_birthday(format:10-15-2000)
I just want get the users whose second_child is more than two years older than the first one!
That means I want the sql like: the result of second_child_birthday minus first_child_birthday is greater than two years
I did not see a way to this,anyone can help me ?
Thanks in advance!
- The topic ‘How to list user by customer meta data using wp_user_query’ is closed to new replies.