Function Reference: geodir_filter_event_widget_listings_where

Summary

This function has not been documented yet.

Source File

geodir_filter_event_widget_listings_where() is located in geodir_event_manager/gdevents_functions.php [Line: 1164]

Source Code

function geodir_filter_event_widget_listings_where( $where, $post_type ) {
	global $plugin_prefix, $wpdb;
	
	if ( $post_type == 'gd_event' ) {
		$where .= " AND ( " . EVENT_SCHEDULE . ".event_date >= '" . date_i18n( 'Y-m-d' ) . "' OR ( " . EVENT_SCHEDULE . ".event_date <= '" . date_i18n( 'Y-m-d' ) . "' AND " . EVENT_SCHEDULE . ".event_enddate >= '" . date_i18n( 'Y-m-d' ) . "' ) ) ";
	}
	return $where;
}