public function run() { $this->message_center->register_hooks(); $this->activation_manager->register_hooks(); add_action('plugins_loaded', array(&$this, 'load_textdomain'), 3); add_action('plugins_loaded', array(&$this, 'load_settings'), 5); add_action('plugins_loaded', array(&$this, 'load_addons'), 10); add_action('init', array(&$this, 'load_scripts'), 7); add_action('init', array(&$this, 'load_styles'), 8); add_action('init', array(&$this, 'load_defaults'), 9); if (is_admin()) { add_action('admin_notices', array(&$this, 'print_admin_notices')); add_action('init', array(&$this, 'load_defaults'), 9); add_action('permalink_structure_changed', array(&$this, 'check_permalinks_enabled')); add_action('cuar/core/activation/run-deferred-action?action_id=check-template-files', array(&$this, 'check_templates')); add_action('cuar/core/activation/run-deferred-action?action_id=check-permalink-settings', array(&$this, 'check_permalinks_enabled')); } else { add_action('plugins_loaded', array(&$this, 'load_theme_functions'), 7); } }