public function __construct($lib)
 {
     parent::__construct($lib);
     add_action('ure_activation', array($this, 'update_on_activation'));
     add_action('plugins_loaded', array($this, 'load_addons'));
     new URE_Shortcodes($this->lib);
     $this->allow_unfiltered_html();
 }
 public function __construct($lib)
 {
     parent::__construct($lib);
     add_action('ure_activation', array($this, 'update_on_activation'));
     add_action('plugins_loaded', array($this, 'load_extra_stuff'));
     $activate_create_post_capability = $this->lib->get_option('activate_create_post_capability', false);
     if ($activate_create_post_capability) {
         add_action('init', array($this, 'activate_create_post_capability'), 10, 2);
     }
     $activate_content_for_roles_shortcode = $this->lib->get_option('activate_content_for_roles_shortcode', false);
     if ($activate_content_for_roles_shortcode) {
         add_action('init', array($this, 'add_content_shortcode_for_roles'));
     }
     $this->allow_unfiltered_html();
 }