How do I filter users based on email address?
I wasn’t sure if you meant users or commentators, so I took both. SQL The email is saved in $wpdb->comments in the column comment_author_email for comments. It is saved in $wpdb->users in the column user_email for users. To get the domain part from the email in comments, we can use: SELECT ( SUBSTR( `comment_author_email`, INSTR( … Read more