Пример #1
0
/**
 * Begins execution of the plugin.
 *
 * Since everything within the plugin is registered via hooks,
 * then kicking off the plugin from this point in the file does
 * not affect the page life cycle.
 *
 * @since    1.0.0
 */
function init_swiftframework()
{
    $swiftframework = new SwiftFramework();
    $swiftframework->run();
    require_once plugin_dir_path(__FILE__) . 'includes/plugin_update_check.php';
    $SwiftFrameworkUpdateChecker = new PluginUpdateChecker_2_0('https://kernl.us/api/v1/updates/564cb2337ad3303b210d6b4b/', __FILE__, 'swift-framework', 1);
}
Пример #2
0
/**
 * Begins execution of the plugin.
 *
 * Since everything within the plugin is registered via hooks,
 * then kicking off the plugin from this point in the file does
 * not affect the page life cycle.
 *
 * @since    1.0.0
 */
function init_swiftframework()
{
    $swiftframework = new SwiftFramework();
    $swiftframework->run();
    require_once plugin_dir_path(__FILE__) . 'includes/wp-updates-plugin.php';
    new WPUpdatesPluginUpdater_977('http://wp-updates.com/api/2/plugin', plugin_basename(__FILE__));
}