Example #1
0
 function wpcharming_updater()
 {
     global $wpc_option;
     $username = trim($wpc_option['tf_username']);
     $api_key = trim($wpc_option['tf_api']);
     if (!empty($username) && !empty($api_key)) {
         load_template(get_template_directory() . '/inc/updater/envato-theme-update.php');
         if (class_exists('Envato_Theme_Updater')) {
             Envato_Theme_Updater::init($username, $api_key, 'WPCharming');
         }
     }
 }
 function stm_updater()
 {
     global $stm_option;
     if (isset($stm_option['envato_username']) && isset($stm_option['envato_api'])) {
         $envato_username = trim($stm_option['envato_username']);
         $envato_api_key = trim($stm_option['envato_api']);
         if (!empty($envato_username) && !empty($envato_api_key)) {
             load_template(get_template_directory() . '/inc/updater/envato-theme-update.php');
             if (class_exists('Envato_Theme_Updater')) {
                 Envato_Theme_Updater::init($envato_username, $envato_api_key, 'StylemixThemes');
             }
         }
     }
 }
Example #3
0
 function st_theme_updater()
 {
     $username = trim(st_get_setting('tf_username'));
     $api_key = trim(st_get_setting('tf_api'));
     if (!empty($username) && !empty($api_key)) {
         load_template(ST_DIR . '/updater/envato-theme-update.php');
         if (class_exists('Envato_Theme_Updater')) {
             Envato_Theme_Updater::init($username, $api_key, 'textdomain');
         }
     }
 }
 function builtpress_updater()
 {
     $envato_username = esc_attr(builtpress_opt('envato_username'));
     $envato_api_key = esc_attr(builtpress_opt('envato_api'));
     if (!empty($envato_username) && !empty($envato_api_key)) {
         require_once get_template_directory() . '/library/vendor/updater/envato-theme-update.php';
         if (class_exists('Envato_Theme_Updater')) {
             Envato_Theme_Updater::init($envato_username, $envato_api_key, 'builtpress');
         }
     }
 }