Feature request: Filter on query params in YARPP::get_related() method
-
I was wondering if you could apply some filter on query params that are being passed to WP_Query::query() in YARPP::get_related() method on line #1191?
So we can add some custom query params (meta queries, data queries, taxonomy queries).
It should look like this:
$related_query->query(apply_filters('yarpp_get_related', array( 'p' => $reference_ID, 'orderby' => $orders[0], 'order' => $orders[1], 'showposts' => $limit, 'post_type' => (isset($args['post_type'])) ? $args['post_type'] : $this->get_post_types() ), $args));
Kind regards,
Luka Pehardahttps://www.ads-software.com/plugins/yet-another-related-posts-plugin/
- The topic ‘Feature request: Filter on query params in YARPP::get_related() method’ is closed to new replies.