wc_get_account_endpoint_url( string $endpoint )
Get account endpoint URL.
Description Description
Parameters Parameters
- $endpoint
-
(Required) Endpoint.
Return Return
(string)
Source Source
File: includes/wc-account-functions.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' ) );
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.6.0 | Introduced. |