WC_AJAX::get_endpoint( string $request = '' )
Get WC Ajax Endpoint.
Description Description
Parameters Parameters
- $request
-
(Optional)
Default value: ''
Return Return
(string)
Source Source
File: includes/class-wc-ajax.php
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 ) ); }