/** * Determines table names and conditionally registers NXTClass hooks. */ public function __construct() { parent::__construct(); // If aggregation is enabled, initialize the aggregator hooks if ($this->get_option('aggregation_enabled')) { add_action('init', array($this, '_initialize_aggregation_hooks')); } }
/** * Enable the recent comments widget and the student comment list. */ function __construct() { parent::__construct(); add_action('admin_menu', array($this, '_add_student_comment_list')); add_action('widgets_init', array($this, '_enable_widget')); }
/** * Initialize NXTClass hooks for the widget and the main page. */ public function __construct() { parent::__construct(); add_action('plugins_loaded', array($this, '_register_hooks')); }
/** * Initialize the tag list. */ function __construct() { parent::__construct(); add_action('pre_get_posts', array($this, '_maybe_enable_tag_list_page')); add_action('widgets_init', array($this, '_enable_widget')); }