run_premium_migrations(); // The below action is used when queries fail, this may happen in a multisite environment when switch_to_blog is used. \add_action( '_yoast_run_migrations', [ $this, 'run_premium_migrations' ] ); } /** * Runs the Premium migrations. * * @return void * * @throws Exception When a migration errored. */ public function run_premium_migrations() { $this->run_migrations( 'premium', \WPSEO_PREMIUM_VERSION ); } }