Title: SQL query to close comments
Last modified: August 18, 2016

---

# SQL query to close comments

 *  [Mohd Elfie Nieshaem Juferi](https://wordpress.org/support/users/menj/)
 * (@menj)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/sql-query-to-close-comments/)
 * Hello, does anyone know what is the SQL query to close comments for posts after
   X number of days? The auto shut-off plugin does not work for me, and I much prefer
   to do it manually via a SQL query.
 * Thanks
 * – MENJ

The topic ‘SQL query to close comments’ is closed to new replies.

## Tags

 * [sql](https://wordpress.org/support/topic-tag/sql/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Mohd Elfie Nieshaem Juferi](https://wordpress.org/support/users/menj/)
 * Last activity: [19 years, 10 months ago](https://wordpress.org/support/topic/sql-query-to-close-comments/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
