woocommerce_ajax_get_endpoint filter-hookWC 1.0

Get WC Ajax Endpoint.

Usage

add_filter( 'woocommerce_ajax_get_endpoint', 'wp_kama_woocommerce_ajax_get_endpoint_filter' );

/**
 * Function for `woocommerce_ajax_get_endpoint` filter-hook.
 * 
 * @param  $request 
 *
 * @return 
 */
function wp_kama_woocommerce_ajax_get_endpoint_filter( $request ){

	// filter...
	return $request;
}
$request
-

Where the hook is called

WC_AJAX::get_endpoint()
woocommerce_ajax_get_endpoint
woocommerce/includes/class-wc-ajax.php 36
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 ) );

Where the hook is used in WooCommerce

Usage not found.