Exemplo n.º 1
0
function brad_themes_update($updates)
{
    global $brad_data;
    if (isset($updates->checked) && !empty($brad_data['themeforest_username']) && !empty($brad_data['themeforest_apikey'])) {
        require_once get_template_directory() . "/framework/theme-update/class-pixelentity-theme-update.php";
        $username = trim($brad_data['themeforest_username']);
        $apikey = trim($brad_data['themeforest_apikey']);
        $updater = new PixelentityThemeUpdate($username, $apikey, "bradweb");
        $updates = $updater->check($updates);
    }
    return $updates;
}