is there a similar replacement of the hook posts_where for comments?
I need to modify the where clause for a comments query like it is shown in this tutorial (“4. Sub custom field values”) for posts.
The only hook I found is comments_pre_query, but the property $query->meta_query_clauses[ 'where' ] is protected.
This topic was modified 1 year, 11 months ago by Silas_229.
(@silas2209)
1 year, 11 months ago
is there a similar replacement of the hook posts_where for comments?
I need to modify the where clause for a comments query like it is shown in this tutorial (“4. Sub custom field values”) for posts.
The only hook I found is comments_pre_query, but the property
$query->meta_query_clauses[ 'where' ]
is protected.