Ejemplo n.º 1
0
 public function __construct($config)
 {
     // Set up auto updater
     parent::__construct($config);
     // Hook into Plugins API
     add_filter('pre_set_site_transient_update_plugins', array(&$this, 'set_update_transient'));
     add_filter('plugins_api', array(&$this, 'set_updates_api_results'), 10, 3);
     // AJAX actions for site authorization
     add_action('wp_ajax_layerslider_authorize_site', array(&$this, 'handleActivation'));
     add_action('wp_ajax_layerslider_deauthorize_site', array(&$this, 'handleDeactivation'));
 }
Ejemplo n.º 2
0
 public function __construct($config)
 {
     // Set up auto updater
     parent::__construct($config);
 }