wc_customer_edit_account_url

Get the link to the edit account details page.

Description

(string) wc_customer_edit_account_url(); 

Returns (string)


Usage

  1. if ( !function_exists( 'wc_customer_edit_account_url' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-account-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wc_customer_edit_account_url(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/wc-account-functions.php  
  1. function wc_customer_edit_account_url() { 
  2. $edit_account_url = wc_get_endpoint_url( 'edit-account', '', wc_get_page_permalink( 'myaccount' ) ); 
  3.  
  4. return apply_filters( 'woocommerce_customer_edit_account_url', $edit_account_url );