Wishlist::items()

Summary

Get the items in the wishlist


Return

(int[])


Source

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

	public function items() {
		$product_ids = array_map( function ( WishlistItem $item ) {
			return $item->getProductId();
		}, $this->wishlist->getItems() );
		$product_ids = array_filter( array_map( 'intval', $product_ids ) );
		/**
		 * Filter the product IDs in the wishlist
		 *
		 * @param int[]    $product_ids
		 * @param Wishlist $wishlist
		 */
		$product_ids = apply_filters( 'bigcommerce/wishlist/items', $product_ids, $this );

		return $product_ids;
	}


User Contributed Notes

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