Add filter for being able to change the posts that are suggested
-
Currently when a case is submitted it shows suggested posts, which is great. Could you update your code to allow for the parameters that are passed into WP_Query to be filtered?
The use case is we have a post type of knowledge base, and we only want to show posts with that post_type.
E.g.
wp-content/plugins/fusedesk/fusedesk.php (Line 616)Change:
$query = new WP_Query($search_query);
To:
$query = new WP_Query(apply_filters('fusedesk_ajax_search_query', $search_query));
Thanks,
Rob
- The topic ‘Add filter for being able to change the posts that are suggested’ is closed to new replies.