1. Go to this page and download the library: Download bitapps/wp-telemetry library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
add_filter($plugin_prefix . 'telemetry_additional_data', 'customize_additional_data', 10, 1);
function customize_additional_data($additional_data)
{
// Do your stuffs here
return $additional_data;
}
add_filter($plugin_prefix . 'telemetry_data', 'customize_telemetry_data', 10, 1);
function customize_telemetry_data($telemetry_data)
{
// Do your stuffs here
return $telemetry_data;
}
Telemetry::report()
->addPluginData()
->init();
add_filter($plugin_prefix . 'deactivate_reasons', 'add_deactivate_reasons', 10, 1);
function add_deactivate_reasons($deactivate_reasons)
{
// example of adding a custom deactivate reason
$deactivate_reasons[] = [
'title' => 'What could we have done to improve your experience?',
'placeholder' => 'Please provide your feedback here',
];
return $deactivate_reasons;
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.