This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Statistics issue when user presses 'return'

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Statistics issue when user presses 'return' Reply To: Statistics issue when user presses 'return'

#35227
Ernest MarcinkoErnest Marcinko
Keymaster

Can you please try this variation instead:

add_filter('asp_results', 'asp_add_stat_noajax', 10, 4);
function asp_add_stat_noajax($results, $id, $is_ajax, $args) {
	if ( !$is_ajax ) {
		asp_statistics::addKeyword($id, $args['s']);
	}
        return $results;
}

Also, make sure the search override feature is enabled, otherwise the plugin may not trigger.