function sfc_connect_widget_activation_check()
{
    if (function_exists('sfc_version')) {
        if (version_compare(sfc_version(), '0.4', '>=')) {
            return;
        }
    }
    deactivate_plugins(basename(__FILE__));
    // Deactivate ourself
    wp_die(__('The base SFC plugin must be activated before this plugin will run.', 'sfc'));
}
function sfc_live_stream_activation_check()
{
    if (function_exists('sfc_version')) {
        if (version_compare(sfc_version(), '0.1', '>=')) {
            return;
        }
    }
    deactivate_plugins(basename(__FILE__));
    // Deactivate ourself
    wp_die("The base SFC plugin must be activated before this plugin will run.");
}
Пример #3
0
function sfc_register_activation_check()
{
    if (!function_exists('sfc_login_activation_check')) {
        deactivate_plugins(basename(__FILE__));
        // Deactivate ourself
        wp_die("The SFC-Register plugin requires that the SFC-Login plugin be activated first.");
    }
    if (function_exists('sfc_version')) {
        if (version_compare(sfc_version(), '0.10', '>=')) {
            return;
        }
    }
    deactivate_plugins(basename(__FILE__));
    // Deactivate ourself
    wp_die("The base SFC plugin must be activated before this plugin will run.");
}