File: //var/www/html/ielts-store/wp-content/plugins/automatewoo/includes/Variables/Wishlist_Items.php
<?php
// phpcs:ignoreFile
namespace AutomateWoo;
if ( ! defined( 'ABSPATH' ) ) exit;
/**
 * @class Variable_Wishlist_Items
 */
class Variable_Wishlist_Items extends Variable_Abstract_Product_Display {
	function load_admin_details() {
		parent::load_admin_details();
		$this->description = __( "Display a product listing of the items in the wishlist.", 'automatewoo');
	}
	/**
	 * @param Wishlist $wishlist
	 * @param $parameters
	 * @param $workflow
	 * @return string
	 */
	function get_value( $wishlist, $parameters, $workflow ) {
		$products = [];
		$template = isset( $parameters['template'] ) ? $parameters['template'] : false;
		foreach ( $wishlist->get_items() as $product_id ) {
			$products[] = wc_get_product( $product_id );
		}
		$args = array_merge( $this->get_default_product_template_args( $workflow, $parameters ), [
			'products' => $products
		]);
		return $this->get_product_display_html( $template, $args );
	}
}