Tribe__Tickets__Main::should_autoload()
Handles the soft-disabling of the plugin if requirements are not met.
Source
File: src/Tribe/Main.php
public function should_autoload(): void {
$invalid = $this->maybe_bail_if_invalid_wp_or_php();
$invalid = $this->maybe_bail_if_old_tec_is_present() || $invalid;
if ( ! $invalid ) {
return;
}
// Include dummy functions to prevent fatals with other plugins.
require_once $this->plugin_path . 'src/functions/soft-disable.php';
// If we get here, we need to reset the global common to TEC's version so that we don't cause a fatal.
$this->reset_common_lib_info_back_to_tec();
$this->should_prevent_autoload_init = true;
}
Changelog
| Version | Description |
|---|---|
| 5.9.3 | Introduced. |