当前位置: 首页>>代码示例>>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;未经允许,请勿转载。