asp_cached_content

Filters the cached content output for the live search

$cache_content = apply_filters('asp_cached_content', $cached_content, $s, $id);

Parameters

  • $cached_content (string) - Cached content

  • $s (string ) - Search phrase

  • $id (int) - Search ID

add_filter( 'asp_cached_content', 'asp_cached_content_check', 10, 3 );
function asp_cached_content_check( $cached_content, $s, $id ) {
	return str_replace('<br>', '', $cached_content);
}

Last updated