I’ve created an Elementor template for the Search Results Archive page with a posts widget that allows for a custom query. I want to pull in the Ajax Search plugin results into that page’s query using Elementor’s custom query ID (info: https://developers.elementor.com/custom-query-filter/)
Sample code I’m working with:
// Filter query on Search Results page with Ajax Search Lite plugin results
add_action( 'elementor/query/asl_custom_search_query', function( $query ) {
$query->set( 'meta_query', $meta_query );
} );
Not sure how to change this query to the same one Ajax Search uses before sending it to the Elementor Search Results page.