You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This filter will be deprecated in future versions. Use [stellarwp/telemetry/exit_interview_args](#stellarwptelemetrystellar_slugexit_interview_args) instead.
398
404
405
+
### stellarwp/telemetry/{hook-prefix}/event_data
406
+
Filters the array of data sent along with the event.
407
+
408
+
**Parameters**: _array_`$data`
409
+
410
+
**Default**:
411
+
```php
412
+
$data = [
413
+
'token' => $this->telemetry->get_token(),
414
+
'stellar_slug' => Config::get_stellar_slug(),
415
+
'event' => $name,
416
+
'event_data' => wp_json_encode( $data ),
417
+
];
418
+
```
419
+
### stellarwp/telemetry/{hook-prefix}/events_url
420
+
Filters the event URL used when sending events to the Telemetry server.
**Parameters**: _string_`$stellar_slug` The stellar slug of the plugin for which the modal should be shown.
431
+
### stellarwp/telemetry/{hook-prefix}/optin
432
+
This filter will be deprecated in future versions. Use [stellarwp/telemetry/optin](#stellarwptelemetryoptin) instead.
433
+
434
+
### stellarwp/telemetry/{hook-prefix}/event
435
+
Sends a site event to the Telemetry server.
436
+
437
+
**Parameters**:
438
+
-_string_`$event` The name of the event.
439
+
-_array_`$data` A set of data that should be passed along with the event.
440
+
399
441
## Adding Plugin Data to Site Health
400
442
401
443
We collect the Site Health data as json on the server. In order to pass additional plugin specific items that can be reported on, you will need to add a section to the Site Health Data. The process for adding a section is documented on [developer.wordpress.org](https://developer.wordpress.org/reference/hooks/debug_information/).
__( 'We hope you love %s.', 'stellarwp-telemetry' ),
86
86
$optin_args['plugin_name']
87
87
);
88
-
$optin_args['intro'] = sprintf(
89
-
// Translators: The user name and the plugin name.
90
-
__(
91
-
'Hi, %1$s! This is an invitation to help our StellarWP community.
92
-
If you opt-in, some data about your usage of %2$s and future StellarWP Products will be shared with our teams (so they can work their butts off to improve).
93
-
We will also share some helpful info on WordPress, and our products from time to time.
94
-
And if you skip this, that’s okay! Our products still work just fine.',
// Translators: The user name and the plugin name.
235
+
esc_html__(
236
+
'Hi, %1$s! This is an invitation to help our StellarWP community.
237
+
If you opt-in, some data about your usage of %2$s and future StellarWP Products will be shared with our teams (so they can work their butts off to improve).
238
+
We will also share some helpful info on WordPress, and our products from time to time.
239
+
And if you skip this, that’s okay! Our products still work just fine.',
0 commit comments