Telemetry::get_reconciled_telemetry_opt_in()
Reconcile our option and the Telemetry option to a single value.
Source
File: src/Events/Telemetry/Telemetry.php
public function get_reconciled_telemetry_opt_in(): bool {
$status = Config::get_container()->get( Status::class );
$stellar_option = $status->get_option();
$optin = $stellar_option[ static::$plugin_slug ]['optin'] ?? false;
$tec_optin = tribe_get_option( 'opt_in_status', null );
if ( is_null( $tec_optin ) ) {
// If the option is null, we haven't saved it yet, so use the stellar option.
return $optin;
}
return $tec_optin;
}
Changelog
| Version | Description |
|---|---|
| 6.1.1 | Introduced. |