/** * Procedurally (vs. Object-oriented), track an event object (or flat array) * NOTE: Use this only when the simpler tracks_record_event() function won't work for you. * @param \Tracks_Event $event The event object. * @return \Tracks_Event|\WP_Error */ function tracks_record_event_raw($event) { return Tracks_Client::record_event($event); }
function record() { return Tracks_Client::record_event($this); }