Пример #1
0
 /**
  * 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'));
     }
 }
Пример #2
0
 /**
  * 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'));
 }
Пример #3
0
 /**
  * Initialize NXTClass hooks for the widget and the main page.
  */
 public function __construct()
 {
     parent::__construct();
     add_action('plugins_loaded', array($this, '_register_hooks'));
 }
Пример #4
0
 /**
  * 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'));
 }