uri = $uri; $this->title = $title; $this->style = $style; $this->callback = $callback; } public function handle( WP_User $user, array $data ) { return $this->callback ? call_user_func( $this->callback, $user, $data ) : null; } public function get_title() { return $this->title; } public function get_style() { return $this->style; } public function get_uri() { return $this->uri; } }