public function register() { foreach ($this->taxonomies as $slug => $taxonomy) { $taxonomy->register(); } parent::register(); }
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; }
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; }
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); }
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; }
public function __construct($shortcode, View $view = null) { $this->slug = $shortcode; $this->view = $view; parent::__construct('init'); }
public function __construct($class) { parent::__construct('widgets_init'); $this->class = $class; }
public function __construct($title, $path) { $this->title = $title; $this->path = $path; parent::__construct('plugins_loaded'); }
public function __construct($location, $description) { parent::__construct('init'); $this->location = $location; $this->description = $description; }