@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | * @param string $event_name The name of the event |
| 38 | 38 | * @param array $properties Custom properties to send with the event |
| 39 | 39 | * @param int $event_timestamp_millis The time in millis since 1970-01-01 00:00:00 when the event occurred |
| 40 | - * @return \Tracks_Event|\WP_Error |
|
| 40 | + * @return Tracks_Event |
|
| 41 | 41 | */ |
| 42 | 42 | function tracks_build_event_obj( $user |
| 43 | 43 | , $event_name |
@@ -78,7 +78,6 @@ discard block |
||
| 78 | 78 | /** |
| 79 | 79 | * Record an event in Tracks - this is the preferred way to record events from PHP. |
| 80 | 80 | * |
| 81 | - * @param mixed $identity username, user_id, or WP_user object |
|
| 82 | 81 | * @param string $event_name The name of the event |
| 83 | 82 | * @param array $properties Custom properties to send with the event |
| 84 | 83 | * @param int $event_timestamp_millis The time in millis since 1970-01-01 00:00:00 when the event occurred |
@@ -24,6 +24,9 @@ |
||
| 24 | 24 | self::record_user_event( 'module_deactivated', array( 'module' => $module ) ); |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | + /** |
|
| 28 | + * @param string $event_type |
|
| 29 | + */ |
|
| 27 | 30 | static function record_user_event( $event_type, $data ) { |
| 28 | 31 | |
| 29 | 32 | $user = wp_get_current_user(); |
@@ -51,6 +51,9 @@ |
||
| 51 | 51 | return $return; |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | +/** |
|
| 55 | + * @param string $file |
|
| 56 | + */ |
|
| 54 | 57 | function github_gist_simple_embed( $id, $file ) { |
| 55 | 58 | $embed_url = $id . '.js' . $file; |
| 56 | 59 | |