I could set a priority for the filter that modifies the search query, but that would most likely cause issues with other plugins that manipulates the query. Since searching by id isn’t exactly a vital feature I decided to not set a priority, so that other plugins that may be more important have a way to override.
There’s a chance ACF Better Search would break if I did that. If you want to, you can test it yourself. All you need to do is open search-by-id.php and alter line 16
from
add_filter('posts_where', array(&$this, 'posts_where'));
to
add_filter('posts_where', array(&$this, 'posts_where'), 999, 1);
999 is the priority (higher = more priority).
-
This reply was modified 3 years, 1 month ago by Uffe Fey.