public static function get_instance() { if (self::$instance === null) { self::$instance = new URE_Task_Queue(); } return self::$instance; }
/** * execute on plugin activation */ function setup() { $this->lib->make_roles_backup(); $this->lib->init_ure_caps(); $task_queue = URE_Task_Queue::get_instance(); $task_queue->add('on_activation'); }