public function register_menu() { if (array_key_exists($this->parent_slug, $this->sys_parents)) { call_user_func($this->sys_parents[$this->parent_slug], $this->title, $this->menu_title, $this->capability, $this->slug, array(&$this, 'render')); } else { add_submenu_page($this->parent_slug, $this->title, $this->menu_title, $this->capability, $this->slug, array(&$this, 'render')); } parent::register_menu(); }
public function register_menu() { add_menu_page($this->title, $this->menu_title, $this->capability, $this->slug, array(&$this, 'render'), $this->icon_url, $this->position); parent::register_menu(); }