asp_search_data
This hook filters the search data object before the live search starts.
1
wp.hooks.applyFilters('asp_search_data', data, searchId, searchInstanceId);
Copied!

Example

1
wp.hooks.addFilter('asp_search_html', 'asp', function(data){
2
/**
3
* data.aspp -> search phrase
4
* data.asid -> search ID
5
* data.asp_inst_id -> search instance ID
6
* data.options -> serialized string of search form options
7
**/
8
return data;
9
}, 10);
Copied!
Last modified 10mo ago
Copy link