Hi. We tried to use the javascript API to hook into asp_redirect_url to change the query structure of results page as so:
$(document).ready(function(){
wp.hooks.addFilter(‘asp_redirect_url’, ‘asp’, function(url) {
// query manipulations
}
}
Everything is working fine then the user is logged in, but for not logged in user the global wp.hooks is undefined. Is there a setting that restricts wp.hooks for not logged-in users?
Hi!
First of all, thank you very much for your help and support we manage to fix the issue.
We’ve come across another issue and I hope you are able to support this one as well.
We use the Ajax Search Plugin inside the Elementor popup – any click on the search filter closes the Elementor popup. Is there a safe way to stop click propagation from search to Elementor popup?
Try turning on the overlay and esc key closing prevention on the Elementor popup settings: https://i.imgur.com/Jv9sC6l.png
That should prevent triggering the closing event on the outside elements.