WordPress at a glance
function is not described

wc_get_account_endpoint_url() WC 2.6.0

Get account endpoint URL.

No Hooks.

Return

String. Nothing.

Usage

wc_get_account_endpoint_url( $endpoint );
$endpoint(string) (required)
Endpoint.

Changelog

Since 2.6.0 Introduced.

Code of wc_get_account_endpoint_url() WC 5.3.0

<?php
function wc_get_account_endpoint_url( $endpoint ) {
	if ( 'dashboard' === $endpoint ) {
		return wc_get_page_permalink( 'myaccount' );
	}

	if ( 'customer-logout' === $endpoint ) {
		return wc_logout_url();
	}

	return wc_get_endpoint_url( $endpoint, '', wc_get_page_permalink( 'myaccount' ) );
}