/** * This function gets the URL to the user authenticate the application in ML. * * @return string **/ public function get_login_url() { if (is_null($this->meli)) { return ''; } return $this->meli->getAuthUrl(WooCommerce_MercadoLivre::get_admin_settings_page_url()); }