/** * Let's go! * * @access public * * @return void **/ public function __construct() { # Actions add_action('admin_init', array($this, 'action_admin_init')); add_action('init', array($this, 'action_init')); add_action('add_meta_boxes', array($this, 'action_add_meta_boxes'), 10, 2); add_action('save_post', array($this, 'action_save_post'), 10, 2); add_action('admin_enqueue_scripts', array($this, 'action_admin_enqueue_scripts')); add_action('admin_menu', array($this, 'action_admin_menu')); add_action('admin_notices', array($this, 'action_admin_notices')); # Filters add_filter('the_content', array($this, 'filter_the_content')); add_filter('the_title', array($this, 'filter_the_title'), 0, 2); $this->version = 3; parent::__construct(__FILE__); }
/** * Let's go! * * @access public * * @return void **/ public function __construct() { # Actions add_action('export_report', array($this, 'export_report_callback')); add_action('admin_init', array($this, 'action_admin_init')); add_action('init', array($this, 'action_init')); add_action('add_meta_boxes', array($this, 'action_add_meta_boxes'), 10, 2); add_action('save_post', array($this, 'action_save_post'), 10, 2); add_action('admin_enqueue_scripts', array($this, 'action_admin_enqueue_scripts')); add_action('wp_enqueue_scripts', array($this, 'action_enqueue_scripts')); add_action('widgets_init', array($this, 'action_register_widget')); add_action('admin_menu', array($this, 'action_admin_menu')); add_action('admin_notices', array($this, 'action_admin_notices')); # Filters add_filter('the_content', array($this, 'filter_the_content')); add_filter('the_title', array($this, 'filter_the_title'), 0, 2); //add_filter('show_admin_bar', '__return_false'); add_action('wp_ajax_ajax', array($this, 'ajax_controller')); $this->version = 3; $this->QuestionnaireController = new QuestionnaireController($this); $this->post_status = get_post_stati(); unset($this->post_status['trash'], $this->post_status['auto-draft'], $this->post_status['inherit']); parent::__construct(__FILE__); }