asp_search_html

The HTML code, which is returned by the default live search feature.

WPD.Hooks.applyFilters('asp_search_html', html, searchId, searchInstanceId);

Example

window.addEventListener("load", () => {
	WPD.Hooks.addFilter('asp_search_html', function(html){
		return html.replace(
			"string", 
			"string_to_replace_with"
		));
	}, 10);
});

Last updated

Copyright Ernest Marcinko