示例#1
0
 /**
  * Initialize Widgets
  *
  * @since 1.0.0
  *
  * @return null
  */
 public function widgets_init()
 {
     if ($this->config->is_array('widgets')) {
         $this->register_widgets($this->config->widgets);
     }
     do_action('wpdevsclub_widget_init', $this);
 }
示例#2
0
 /**
  * Initialize Widgets
  *
  * @since 1.1.1
  *
  * @return null
  */
 public function widgets_init()
 {
     if ($this->config->is_array('widgets')) {
         $this->core->register_widgets($this->config->widgets);
     }
 }
示例#3
0
 /**
  * Checks whether to use the limit_to_template check for this screen.
  *
  * @since 2.0.0
  *
  * @return bool
  */
 protected function use_limit_to_template_check()
 {
     return $this->config->has('limit_to_template.template') && $this->config->limit_to_template['template'] && $this->config->limit_to_template['template'] && $this->config->is_array('limit_to_template.screen');
 }