Wishlist::delete_item_url( $product_id )

Summary

No summary available.

Source

File: src/BigCommerce/Accounts/Wishlists/Wishlist.php

	public function delete_item_url( $product_id ) {
		$url = home_url( sprintf( 'bigcommerce/%s/%s/%d', Request_Router::ACTION, Remove_Item::ACTION, $this->list_id() ) );
		$url = add_query_arg( [ 'product_id' => $product_id ], $url );
		$url = wp_nonce_url( $url, sprintf( '%s/%d/%d', Remove_Item::ACTION, $this->list_id(), $product_id ) );

		/**
		 * Filter the URL for removing an item from a wishlist
		 *
		 * @param string   $url        The form handler URL
		 * @param Wishlist $wishlist   The wishlist object
		 * @param int      $product_id The ID of the product to remove
		 */
		return apply_filters( 'bigcommerce/wishlist/remove-item-url', $url, $this, $product_id );
	}


User Contributed Notes

You must log in before being able to contribute a note or feedback.