register(); ( new SiteHealth( $report, $consent ) )->register(); if ( is_admin() ) { add_action( 'admin_init', array( $scanner, 'maybe_schedule' ) ); ( new Page( $scanner, $store, $report, $consent ) )->register(); ( new Notice( $report, $consent ) )->register(); if ( $consent->granted() ) { ( new PluginsColumn( $store ) )->register(); } } } /** * Activation: no cron, no request. Only remember to point to the Brachmelder page once. */ public static function activate(): void { if ( ! ( new Consent() )->granted() ) { update_option( self::INTRO_OPTION, 1, false ); } } }