function sgPopupActivate() { update_option('SG_POPUP_VERSION', SG_POPUP_VERSION); PopupInstaller::install(); if (SG_POPUP_PRO) { PopupProInstaller::install(); } }
function sgPopupPluginLoaded() { $versionPopup = get_option('SG_POPUP_VERSION'); if (!$versionPopup || $versionPopup < SG_POPUP_VERSION) { update_option('SG_POPUP_VERSION', SG_POPUP_VERSION); PopupInstaller::install(); } }