Example #1
0
 public function register()
 {
     foreach ($this->taxonomies as $slug => $taxonomy) {
         $taxonomy->register();
     }
     parent::register();
 }
Example #2
0
 public function __construct($domain, $abs_rel_path, $plugin_rel_path)
 {
     parent::__construct('plugins_loaded');
     $this->domain = $domain;
     $this->abs_rel_path = $abs_rel_path;
     $this->plugin_rel_path = $plugin_rel_path;
 }
Example #3
0
 public function __construct($name, $width = 0, $height = 0, $crop = false)
 {
     parent::__construct('init');
     $this->name = $name;
     $this->width = $width;
     $this->height = $height;
     $this->crop = $crop;
 }
Example #4
0
 public function __construct($slug, $type, $args = array())
 {
     parent::__construct('init');
     $this->slug = $slug;
     $this->type = $type;
     //TODO setup common defaults
     $defaults = array();
     $this->args = wp_parse_args($args, $defaults);
 }
Example #5
0
 public function __construct($sbId, $name, $before_widget = "", $after_widget = "", $before_title = "", $after_title = "")
 {
     parent::__construct('widgets_init');
     $this->sbId = $sbId;
     $this->name = $name;
     $this->before_widget = $before_widget;
     $this->after_widget = $after_widget;
     $this->before_title = $before_title;
     $this->after_title = $after_title;
 }
Example #6
0
 public function __construct($shortcode, View $view = null)
 {
     $this->slug = $shortcode;
     $this->view = $view;
     parent::__construct('init');
 }
Example #7
0
 public function __construct($class)
 {
     parent::__construct('widgets_init');
     $this->class = $class;
 }
Example #8
0
 public function __construct($title, $path)
 {
     $this->title = $title;
     $this->path = $path;
     parent::__construct('plugins_loaded');
 }
Example #9
0
 public function __construct($location, $description)
 {
     parent::__construct('init');
     $this->location = $location;
     $this->description = $description;
 }