How to Change the Default Algorithm for “Sort by Ratings” in GeoDirectory?

 
/**
* Disable Bayesian average method to sort by ratings.* 
* See https://www.google.com/search?q=bayesian+rating+sorting
*/
function wpsc_gd_snippet_200611_disable_use_bayesian( $use_bayesian = true, $table = '' ) {
	return false;
	}
add_filter( 'geodir_use_bayesian', 'wpsc_gd_snippet_200611_disable_use_bayesian', 10, 2 );
add_filter( 'gd_use_bayesian', 'wpsc_gd_snippet_200611_disable_use_bayesian', 10, 2 );

Subscribe To Our Newsletter

Join our mailing list to receive the latest news and updates from our team.

You have Successfully Subscribed!

Share This