C
C
Casey2016-12-24 02:34:55
PHP
Casey, 2016-12-24 02:34:55

How to sort comments in a VI by wp_commentmeta?

Let's say I want to display only comments in the VI that have "meta_kay" city and meta_value "moscow". How to implement it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor Vorotnev, 2016-12-26
@HeadOnFire

Change the WP_Comment_Query parameters via the pre_get_comments hook .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question