public function run_addon($plugin)
 {
     parent::run_addon($plugin);
     if (!is_admin()) {
         add_action('template_redirect', array(&$this, 'handle_form_submission'));
     }
 }
 public function run_addon($plugin)
 {
     parent::run_addon($plugin);
     if (!is_admin()) {
         add_action('template_redirect', array(&$this, 'handle_form_submission'));
         add_action('wp_enqueue_scripts', array(&$this, 'enqueue_scripts'));
     } else {
         add_action('admin_enqueue_scripts', array(&$this, 'enqueue_scripts'));
         add_filter('cuar/core/permission-groups', array(&$this, 'get_configurable_capability_groups'), 1000);
     }
 }
 public function run_addon($plugin)
 {
     parent::run_addon($plugin);
     if (!is_admin()) {
         add_action('template_redirect', array(&$this, 'handle_form_submission'));
         add_action('wp_enqueue_scripts', array(&$this, 'enqueue_scripts'));
     } else {
         add_action('admin_enqueue_scripts', array(&$this, 'enqueue_scripts'));
         add_filter('cuar/core/permission-groups', array(&$this, 'get_configurable_capability_groups'), 1000);
     }
     if ($this->get_wizard_step_count() > 1) {
         // Enable rewrite rules for the wizard steps
         $this->enable_wizard_permalinks();
     }
 }
 public function run_addon($plugin)
 {
     parent::run_addon($plugin);
     add_filter('cuar/routing/logout-url', array(&$this, 'get_default_logout_url'), 20, 3);
     add_action('template_redirect', array(&$this, 'do_logout'), 1000);
 }
 public function run_addon($plugin)
 {
     parent::run_addon($plugin);
     add_filter('cuar/core/permission-groups', array(&$this, 'get_configurable_capability_groups'));
 }
 public function run_addon($plugin)
 {
     parent::run_addon($plugin);
     if ($this->get_friendly_post_type() != null) {
         add_filter("get_previous_post_where", array(&$this, 'disable_single_post_navigation'), 1, 3);
         add_filter("get_next_post_where", array(&$this, 'disable_single_post_navigation'), 1, 3);
     }
     if (!is_admin()) {
         add_filter('the_content', array(&$this, 'print_single_private_content_action_links'), 2990);
         // Optionally output the file links in the post footer area
         if ($this->is_show_in_single_post_footer_enabled()) {
             add_filter('the_content', array(&$this, 'print_single_private_content_footer'), 3000);
         }
         // Optionally output the latest files on the dashboard
         if ($this->is_show_in_dashboard_enabled()) {
             add_action('cuar/core/page/before-content?slug=customer-dashboard', array(&$this, 'print_dashboard_content'), 10);
         }
     }
 }
 public function run_addon($plugin)
 {
     parent::run_addon($plugin);
     // Widget area for our sidebar
     $this->enable_sidebar();
 }