Telemetry::filter_exit_interview_args( TECCommonTelemetryarray $args )
Filters the exit questionnaire shown during plugin deactivation/uninstall.
Contents
Parameters
- $args
-
(<span class="TECCommonTelemetryarray">TECCommonTelemetryarray) (Required) The current args.
Return
(TECCommonTelemetryarray<string,mixed>) $args The modified args.
Source
File: src/Common/Telemetry/Telemetry.php
public function filter_exit_interview_args( $args ) {
$new_args = [
'plugin_logo' => tribe_resource_url( 'images/logo/tec-brand.svg', false, null, \Tribe__Main::instance() ),
'plugin_logo_width' => 'auto',
'plugin_logo_height' => 32,
'plugin_logo_alt' => 'TEC Common Logo',
'heading' => __( 'We’re sorry to see you go.', 'tribe-common' ),
'intro' => __( 'We’d love to know why you’re leaving so we can improve our plugin.', 'tribe-common' ),
'uninstall_reasons' => [
[
'uninstall_reason_id' => 'confusing',
'uninstall_reason' => __( 'I couldn’t understand how to make it work.', 'tribe-common' ),
],
[
'uninstall_reason_id' => 'better-plugin',
'uninstall_reason' => __( 'I found a better plugin.', 'tribe-common' ),
'show_comment' => true,
],
[
'uninstall_reason_id' => 'no-feature',
'uninstall_reason' => __( 'I need a specific feature it doesn’t provide.', 'tribe-common' ),
'show_comment' => true,
],
[
'uninstall_reason_id' => 'broken',
'uninstall_reason' => __( 'The plugin doesn’t work.', 'tribe-common' ),
'show_comment' => true,
],
[
'uninstall_reason_id' => 'other',
'uninstall_reason' => __( 'Other', 'tribe-common' ),
'show_comment' => true,
],
],
];
return array_merge( $args, $new_args );
}
Changelog
| Version | Description |
|---|---|
| 5.1.0 | Introduced. |