[wp-trac] [WordPress Trac] #53060: Data Deletion - comments

WordPress Trac noreply at wordpress.org
Mon Apr 19 16:44:31 UTC 2021


#53060: Data Deletion - comments
-----------------------------+-----------------------------
 Reporter:  megphillips91    |      Owner:  (none)
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Query            |    Version:
 Severity:  normal           |   Keywords:
  Focuses:  privacy          |
-----------------------------+-----------------------------
 **Data Deletion - comments**
 Can we add a WP_Query parameter so that we can pull comments by author
 email or author user_id?

 **Why?**
 For better user privacy, I am creating a profile page for users where they
 can see all the comments they have made and easily delete those comments
 -- but in a post loop so that they have the context of the comments that
 they have made.

 **Reference**
 https://developer.wordpress.org/reference/classes/wp_query/#comment-
 parameters
 It seems there is no WP_Query parameter for pulling posts by comment
 author. I think there should be for privacy.

 Of course, I can make it happen the other way round with a custom DB query
 to find all comments by author and then get the post_id and loop the ids
 in_array but maybe it should be easier and more standard as to encourage
 user privacy respect.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53060>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list