'; echo esc_html__( 'Aftercare requires PHP 8.1 or newer. The plugin is inactive until PHP is upgraded.', 'aftercare' ); echo '

'; } ); return; } spl_autoload_register( static function ( $class ) { if ( ! str_starts_with( $class, 'Aftercare\\' ) ) { return; } $path = AFTERCARE_DIR . 'src/' . str_replace( '\\', '/', substr( $class, strlen( 'Aftercare\\' ) ) ) . '.php'; if ( file_exists( $path ) ) { require $path; } } ); // Fatal errors are captured from the moment this file loads, so a plugin that // breaks the site while loading after Aftercare is still recorded. Aftercare\Errors\Collector::register(); register_activation_hook( __FILE__, array( 'Aftercare\\Core\\Activator', 'activate' ) ); register_deactivation_hook( __FILE__, array( 'Aftercare\\Core\\Activator', 'deactivate' ) ); add_action( 'plugins_loaded', static function () { Aftercare\Core\Plugin::instance()->boot(); } );