woocommerce_get_endpoint_url

The WooCommerce woocommerce get endpoint url function.

Description

woocommerce_get_endpoint_url( $endpoint, (string) $value = '', (string) $permalink = '' ); 

Parameters (3)

0. $endpoint
The endpoint.
1. $value — Optional. (string) => ''
The value.
2. $permalink — Optional. (string) => ''
The permalink.

Usage

  1. if ( !function_exists( 'woocommerce_get_endpoint_url' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-deprecated-functions.php'; 
  3.  
  4. // The endpoint. 
  5. $endpoint = null; 
  6.  
  7. // The value. 
  8. $value = ''; 
  9.  
  10. // The permalink. 
  11. $permalink = ''; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = woocommerce_get_endpoint_url($endpoint, $value, $permalink); 
  15.  

Defined (1)

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

/includes/wc-deprecated-functions.php  
  1. function woocommerce_get_endpoint_url( $endpoint, $value = '', $permalink = '' ) { 
  2. wc_deprecated_function( __FUNCTION__, '3.0', 'wc_get_endpoint_url' ); 
  3. return wc_get_endpoint_url( $endpoint, $value, $permalink );