booted ) { return; } $this->booted = true; add_action( 'admin_init', array( $this, 'maybe_upgrade' ), 5 ); ( new ButtonRenderer() )->boot(); if ( is_admin() ) { ( new Admin() )->boot(); } } /** * Normalize copied or upgraded installations even if activation was skipped. * * @return void */ public function maybe_upgrade() { if ( AKAVA_BTT_VERSION === get_option( Config::VERSION_OPTION ) ) { return; } Activator::activate(); } }