Function Reference: geodir_event_cat_post_count_where
Summary
This function has not been documented yet.
Source File
geodir_event_cat_post_count_where() is located in geodir_event_manager/gdevents_functions.php [Line: 777]
Source Code
function geodir_event_cat_post_count_where( $where, $post_type ) { global $plugin_prefix; $current_date = date_i18n( 'Y-m-d' ); if ( $post_type == 'gd_event' ) { $table_name = $plugin_prefix . $post_type . '_detail'; $where .= " AND " . $table_name . ".post_id=sch.event_id AND ( sch.event_date >= '" . $current_date . "' OR ( sch.event_date <= '" . $current_date . "' AND sch.event_enddate >= '" . $current_date . "' ) ) "; } return $where; }