ClassesBigCommerceAccountsWishlistsWishlist Request Parser

Wishlist_Request_Parser

Class Wishlist_Request_Parser

This class parses and processes wishlist-related requests, such as filtering the product archive to display wishlist items. It integrates with the BigCommerce Wishlists API to fetch and handle wishlist data and applies necessary filters and actions to the WordPress environment.

  • Full name: \BigCommerce\Accounts\Wishlists\Wishlist_Request_Parser

Constants

ConstantVisibilityTypeValue
LIST_PARAMpublicstring’list’
TOKEN_PARAMpublicstring’token’

Methods

__construct

Constructor for Wishlist_Request_Parser.

public __construct(\BigCommerce\Api\v3\Api\WishlistsApi $wishlists): mixed

Parameters:

ParameterTypeDescription
$wishlists\BigCommerce\Api\v3\Api\WishlistsApiThe Wishlists API instance for fetching wishlist data.

setup_wishlist_request

Setup the wishlist request.

public setup_wishlist_request(\WP $wp): mixed

Determines whether the current request is a wishlist request. If so, it fetches the wishlist data and applies appropriate actions and filters to render the wishlist.

Parameters:

ParameterTypeDescription
$wp\WPThe WordPress request object.


Automatically generated on 2025-01-21