search_meter_record_duplicates

search_meter_record_duplicates

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: search-meter.2.13.5

apply_filters('search_meter_record_duplicates') is found 1 times:

  • /search-meter.php line 281
    	// Recording duplicate searches can be enabled by adding this line to functions.php:
    	//   add_filter('search_meter_record_duplicates', function() { return true; });
    	// Setting to true will record duplicates (the fact that it's a dupe will be recorded in the
    	// details). This will mess up the stats, but could be useful for troubleshooting.
    	$record_duplicates = apply_filters('search_meter_record_duplicates', false);
    
    	if (is_search()
    	&& !is_paged() // not the second or subsequent page of a previously-counted search
    	&& !tguy_is_admin_interface() // not using the administration console
    	&& (0 === $tguy_sm_save_count || $record_duplicates)
    	&& (tguy_sm_array_value($_SERVER, 'HTTP_REFERER')) // proper referrer (otherwise could be search engine, cache...)
    

See this hook used in plugins: