public function add_menu() { // Only add the menu if connected to Constant Contact if (is_object($this->cc) && !$this->cc->isConfigured()) { return; } add_submenu_page('constant-contact-api', 'CTCT - ' . htmlentities($this->title), '<span id="menu-' . esc_attr($this->getKey()) . '">' . htmlentities($this->getNavTitle()) . '</span>', $this->permission, $this->key, array(&$this, 'page')); }