HTTP/2 302
server: nginx
date: Thu, 31 Jul 2025 13:13:05 GMT
content-type: text/html; charset=UTF-8
x-olaf: ⛄
expires: Wed, 11 Jan 1984 05:00:00 GMT
cache-control: no-cache, must-revalidate, max-age=0, no-store, private
x-redirect-by: WordPress
location: https://developer.wordpress.org/reference/hooks/comments_clauses/
x-frame-options: SAMEORIGIN
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 1
HTTP/2 200
server: nginx
date: Thu, 31 Jul 2025 13:13:06 GMT
content-type: text/html; charset=UTF-8
vary: Accept-Encoding
x-olaf: ⛄
link:
; rel="https://api.w.org/"
link:
; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
x-frame-options: SAMEORIGIN
content-encoding: gzip
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 1
comments_clauses – Hook | Developer.WordPress.org
apply_filters_ref_array( ‘comments_clauses’, string[] $clauses, WP_Comment_Query $query )
Filters the comment query clauses.
$clauses
string[]Associative array of the clauses for the query.
fields
stringThe SELECT clause of the query.
join
stringThe JOIN clause of the query.
where
stringThe WHERE clause of the query.
orderby
stringThe ORDER BY clause of the query.
limits
stringThe LIMIT clause of the query.
groupby
stringThe GROUP BY clause of the query.
$query
Version | Description |
---|
3.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.