woocommerce_ajax_get_endpoint

woocommerce_ajax_get_endpoint

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_ajax_get_endpoint') is found 1 times:

  • /includes/class-wc-ajax.php line 46
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    *
     * @return string
     */
    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 ) );
    }
     
    /**
     * Set WC AJAX constant and headers.
     */
    public static function define_ajax() {