Tribe__Events__Main::clear_ct1_activation_state()
Idempotent method to clear the state of the Custom Tables v1 activation state.
Note the state might be persisted in the database, as a transient, or in the cache. The method will handle both cases.
Return
(void) The method will clear the state of the Custom Tables v1 activation.
Source
File: src/Tribe/Main.php
public static function clear_ct1_activation_state(): void {
/*
* Value is hard-coded to avoid autoloading the Activation class for the sole purpose of getting the
* transient name.
*
* @see TEC\Events\Custom_Tables\V1\Activation::ACTIVATION_TRANSIENT
*/
$transient_key = 'tec_custom_tables_v1_initialized';
delete_transient( $transient_key );
wp_cache_delete( $transient_key );
}
Changelog
| Version | Description |
|---|---|
| 6.0.8 | Introduced. |