guideplugin/result/posts
Definition
With this filter you can filter the Post ID’s of the results.
Parameters
appy_filters('guideplugin/result/posts', $posts, $guide_id);
$posts
(array) The Post ID’s of the results.$guide_id
(int) The ID of the guide.
Example
The example shows you how to access the Post ID’s.
<?php function my_guide_result_posts($posts, $guide_id) { // The guide result you want to modify if ($guide_id == 24) { array_push($posts, 333); // add post_id '333' to result set } return $posts; } add_filter('guideplugin/result/posts', 'my_guide_result_posts', 10, 2);