當前位置: 首頁>>代碼示例>>PHP>>正文


PHP YIT_Upgrade函數代碼示例

本文整理匯總了PHP中YIT_Upgrade函數的典型用法代碼示例。如果您正苦於以下問題:PHP YIT_Upgrade函數的具體用法?PHP YIT_Upgrade怎麽用?PHP YIT_Upgrade使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了YIT_Upgrade函數的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: register_plugin_for_updates

 /**
  * Register plugins for update tab
  *
  * @return void
  * @since    1.0.0
  * @author   Andrea Grillo <andrea.grillo@yithemes.com>
  */
 public function register_plugin_for_updates()
 {
     if (!class_exists('YIT_Upgrade')) {
         require_once 'plugin-fw/lib/yit-upgrade.php';
     }
     YIT_Upgrade()->register(YWCPS_SLUG, YWCPS_INIT);
 }
開發者ID:JailsonH1Sites,項目名稱:v8brasil,代碼行數:14,代碼來源:class.yith-woocommerce-product-slider-premium.php

示例2: licence_after_check

 public function licence_after_check()
 {
     /* === Regenerate Update Plugins Transient === */
     YIT_Upgrade()->force_regenerate_update_transient();
 }
開發者ID:tinhnd1988,項目名稱:chothai,代碼行數:5,代碼來源:yit-plugin-licence.php

示例3: __

            $title = __('Update Plugin', 'yith-plugin-fw');
            $parent_file = 'plugins.php';
            $submenu_file = 'plugins.php';
            wp_enqueue_script('updates');
            require_once ABSPATH . 'wp-admin/admin-header.php';
            $nonce = 'upgrade-plugin-multisite_' . $plugin;
            $url = 'update.php?action=upgrade-plugin-multisite&plugin=' . urlencode($plugin);
            $upgrader = new Plugin_Upgrader(new Plugin_Upgrader_Skin(compact('title', 'nonce', 'url', 'plugin')));
            $upgrader->upgrade($plugin);
            include ABSPATH . 'wp-admin/admin-footer.php';
        }
    }
}
if (!function_exists('YIT_Upgrade')) {
    /**
     * Main instance of plugin
     *
     * @return object
     * @since  1.0
     * @author Andrea Grillo <andrea.grillo@yithemes.com>
     */
    function YIT_Upgrade()
    {
        return YIT_Upgrade::instance();
    }
}
/**
 * Instance a YIT_Upgrade object
 */
YIT_Upgrade();
開發者ID:lieison,項目名稱:IndustriasFenix,代碼行數:30,代碼來源:yit-upgrade.php

示例4: update_licence_information

 /**
  * Update Plugins Information
  *
  * Send a request to API server to check activate plugins and update the informations
  *
  * @return void
  * @use YIT_Theme_Licence->check()
  *
  * @since  1.0
  * @author Andrea Grillo <andrea.grillo@yithemes.com>
  */
 public function update_licence_information()
 {
     foreach ($this->_products as $init => $info) {
         $this->check($init);
     }
     /* === Regenerate Update Plugins Transient === */
     YIT_Upgrade()->force_regenerate_update_transient();
     do_action('yit_licence_after_check');
     $response['template'] = $this->show_activation_panel();
     wp_send_json($response);
 }
開發者ID:Sibzsolutions,項目名稱:Schiffrinpa,代碼行數:22,代碼來源:yit-licence.php

示例5: update_licence_information

 /**
  * Update Plugins Information
  *
  * Send a request to API server to check activate plugins and update the informations
  *
  * @return void
  * @use YIT_Theme_Licence->check()
  *
  * @since  1.0
  * @author Andrea Grillo <andrea.grillo@yithemes.com>
  */
 public function update_licence_information()
 {
     /* Check licence information for alla products */
     $this->check_all();
     /* === Regenerate Update Plugins Transient === */
     YIT_Upgrade()->force_regenerate_update_transient();
     do_action('yit_licence_after_check');
     if ($this->is_ajax()) {
         $response['template'] = $this->show_activation_panel();
         wp_send_json($response);
     }
 }
開發者ID:lieison,項目名稱:IndustriasFenix,代碼行數:23,代碼來源:yit-licence.php


注:本文中的YIT_Upgrade函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。