Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Freemius::migrate_accounts_to_network()

A special migration logic for the $_accounts, executed for all the plugins in the system: – Moves some data to the network level storage.


Description Description

  • If the plugin’s connection was skipped for all sites, set the plugin as if it was network skipped.
    • If the plugin’s connection was ignored for all sites, don’t do anything in terms of the network connection.
    • If the plugin was connected to all sites by the same super-admin, set the plugin as if was network opted-in for all sites.
    • If there’s at least one site that was connected by a super-admin, find the "main super-admin" (the one that installed the majority of the plugin installs) and set the plugin as if was network activated with the main super-admin, set all the sites that were skipped or opted-in with a different user to delegated mode. Then, prompt the currently logged super-admin to choose what to do with the ignored sites.
    • If there are any sites in the network which the connection decision was not yet taken for, set this plugin into network activation mode so a super-admin can choose what to do with the rest of the sites.

Source Source

File: includes/pum-sdk/freemius/includes/class-freemius.php



Top ↑

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.