Telemetry::normalize_optin_status()
This ensures all our entries are the same.
Source
File: src/Common/Telemetry/Telemetry.php
public function normalize_optin_status(): void {
// If they have opted in to one plugin, opt them in to all TEC ones.
$status_obj = static::get_status_object();
$stati = [];
$status = $this->calculate_optin_status();
$stati = array_filter( $stati );
foreach ( static::$base_parent_slugs as $slug ) {
if ( $status_obj->plugin_exists( $slug ) ) {
$status_obj->set_status( (bool) $status, $slug );
}
}
tribe_update_option( 'opt-in-status', $status );
}
Changelog
| Version | Description |
|---|---|
| 5.1.8.1 | Introduced. |