Add_Custom_Fields_To_Search::cf_search_distinct( string $where )

cf_search_distinct


Description Description

Prevent duplicates

See also See also


Top ↑

Parameters Parameters

$where

(string) (Required)


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/class-add-custom-fields-to-search.php

		function cf_search_distinct( $where ) {
		    if ( is_search() ) {
		        return "DISTINCT";
		    }

		    return $where;
		}