• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Easy Digital Downloads a2z

Easy Digital Downloads a2z

Easy Digital Downloads a2z

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / EDD_Cart::remove_item_url() – Generate the URL to remove an item from the cart.

You appear to be a bot. Output may be restricted

Description

Generate the URL to remove an item from the cart.

Usage

$string = EDD_Cart::remove_item_url( $cart_key );

Parameters

$cart_key
( int ) required – Cart item key

Returns

string $remove_url URL to remove the cart item

Source

File name: easy-digital-downloads/includes/cart/class-edd-cart.php


Lines:

1 to 14 of 14
  public function remove_item_url( $cart_key ) {
    global $wp_query;

    if ( defined( 'DOING_AJAX' ) ) {
      $current_page = edd_get_checkout_uri();
    } else {
      $current_page = edd_get_current_page_url();
    }

    $remove_url = edd_add_cache_busting( add_query_arg( array( 'cart_item' => $cart_key, 'edd_action' => 'remove' ), $current_page ) );

    return apply_filters( 'edd_remove_item_url', $remove_url );
  }
 

 View on GitHub View on Trac

Published: 26th November 2019 | Last updated: 8th April 2020

Primary Sidebar

Information

Function name: EDD_Cart::remove_item_url
Class ref: EDD_Cart
Plugin ref: Easy Digital Downloads
Version: 2.9.23
Sourcefile: includes/cart/class-edd-cart.php
File ref: includes/cart/class-edd-cart.php
Deprecated?: No
API Letters: C,E,I,R,U

Footer

Easy Digital Downloads a2z
Easy Digital Downloads a2z
Easy Digital Downloads a2z
WordPress 5.6
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  edd.wp-a2z.org
© Copyright Easy Digital Downloads a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites