Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Can I have an older plugin version? › Reply To: Can I have an older plugin version?
Okay, thank you!
This is a very weird one, I had to check the source code, and there is littel to no difference in the current and the previous releases in regards the override feature. I can’t see how this could have worked in the first place, as the search override should have not triggered whatsoever – unless there is some hook in the Oxygen Builder connecting with Elementor, which I don’t know about.
Anyways, there is actually a way to force the search override on any query, regardless of the page builder via a small custom code snippet:
add_filter('asp_query_is_search', 'asp_query_is_search_test', 10, 2);
function asp_query_is_search_test($is_search, $wp_query) {
if ( isset($_GET['asp_ls'] ) {
return true;
}
return false;
}
If this does not work, then there is more to this – as this will definitely trigger an override on any query registered.