src/SimplePlugin.php
public function init_widgets() {
        if (!is_array($this->widgets)) {
            $this->widgets = array();
        }

        if (count($this->widgets) > 0) {
            return;
        }

        foreach ($this->widgets as $widget) {
            if (class_exists($widget)) {
                register_widget($widget);
            }
        }
    }
public function init_widgets() {
        if (!is_array($this->widgets)) {
            $this->widgets = array();
        }

        if (count($this->widgets) > 0) {
            return;
        }

        foreach ($this->widgets as $widget) {
            if (class_exists($widget)) {
                register_widget($widget);
            }
        }
    }
public function init_widgets ( ) { if ( ! is_array ( $ this -> widgets ) ) { $ this -> widgets = array ( ) ; } if ( count ( $ this -> widgets ) > 0 ) { return ; } foreach ( $ this -> widgets as $ widget ) { if ( class_exists ( $ widget ) ) { register_widget ( $ widget ) ; } } }
Initializes widgets (if are any defined).

@since 0.1.2
@return void
Initializes widgets ( if are any defined ) .