$string= strtolower(str_replace(" ", '-',$string));
return preg_replace('/[^A-Za-z0-9\-]/', '', $string); // Removes special chars.
}
-
+
+ /*
+ * AJAX Debugging
+ *
+ */
+ function write_log ( $log ) {
+ if ( true === WP_DEBUG ) {
+ if ( is_array( $log ) || is_object( $log ) ) {
+ error_log( print_r( $log, true ) );
+ } else {
+ error_log( $log );
+ }
+ }
+ }
/*
* Perform Model Action
*
'url' => GLM_MEMBERS_EVENTS_SITE_BASE_URL . 'event-detail/' . $event_recur[0]->name_slug . "/"
);
- $datesArray[$event['start_time']['timestamp']][] = $event_data;
+ $datesArray[$start_timestamp][] = $event_data;
}
-
+
}
// end section for front page events widget data