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

Example

1
WPD.Hooks.addFilter('asp_search_data', '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!
Copy link
Contents