PHP 8.2.31
Preview: ProductLoader.php Size: 717 B
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/woocommerce/src/Internal/ProductFeed/Feed/ProductLoader.php

<?php
/**
 * Product Loader class.
 *
 * @package Automattic\WooCommerce\Internal\ProductFeed
 */

declare(strict_types=1);

namespace Automattic\WooCommerce\Internal\ProductFeed\Feed;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Loader for products.
 *
 * @since 10.5.0
 */
class ProductLoader {
	/**
	 * Retrieves products from WooCommerce.
	 *
	 * @since 10.5.0
	 *
	 * @see wc_get_products()
	 *
	 * @param array $args The arguments to pass to wc_get_products().
	 * @return array|\stdClass Number of pages and an array of product objects if
	 *                         paginate is true, or just an array of values.
	 */
	public function get_products( array $args ) {
		return wc_get_products( $args );
	}
}

Directory Contents

Dirs: 0 × Files: 6

Name Size Perms Modified Actions
987 B lrw-r--r-- 2026-01-19 14:46:18
Edit Download
602 B lrw-r--r-- 2026-01-19 14:46:18
Edit Download
717 B lrw-r--r-- 2026-01-19 14:46:18
Edit Download
476 B lrw-r--r-- 2026-01-19 14:46:18
Edit Download
7.13 KB lrw-r--r-- 2026-01-19 14:46:18
Edit Download
1.23 KB lrw-r--r-- 2026-01-19 14:46:18
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).