WordPress at Your Fingertips
function is not described

WC_AJAX::get_endpoint() public WC 1.0

Get WC Ajax Endpoint.

{} It's a method of the class: WC_AJAX{}

Hooks from the method

Return

String.

Usage

$result = WC_AJAX::get_endpoint( $request );
$request(string)
Optional.
Default: ''

Code of WC_AJAX::get_endpoint() WC 5.9.0

public static function get_endpoint( $request = '' ) {
	return esc_url_raw( apply_filters( 'woocommerce_ajax_get_endpoint', add_query_arg( 'wc-ajax', $request, remove_query_arg( array( 'remove_item', 'add-to-cart', 'added-to-cart', 'order_again', '_wpnonce' ), home_url( '/', 'relative' ) ) ), $request ) );
}