asp_redirect_url
The URL where the search redirects to, when the user hits the return key, "magnifier", "search" or "more results" buttons.
1
wp.hooks.applyFilters('asp_redirect_url', url, searchId, searchInstanceId);
Copied!

Example

1
wp.hooks.addFilter('asp_redirect_url', 'asp', function(url){
2
return url.replace(
3
"string",
4
"string_to_replace_with"
5
));
6
}, 10);
Copied!
Last modified 10mo ago
Copy link