WC_AJAX::get_endpoint()public staticWC 1.0

Get WC Ajax Endpoint.

Method of the class: WC_AJAX{}

Hooks from the method

Return

String.

Usage

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

WC_AJAX::get_endpoint() code WC 9.3.3

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 ) );
}