예제 #1
0
/**
 * 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);
}
예제 #2
0
 function record()
 {
     return Tracks_Client::record_event($this);
 }