Automattic\WooCommerce\Internal\ProductFeed\Feed

ProductLoader{}WC 10.5.0

Loader for products.

Хуков нет.

Использование

$ProductLoader = new ProductLoader();
// use class methods

Методы

  1. public get_products( array $args )

Список изменений

С версии 10.5.0 Введена.

Код ProductLoader{} WC 10.5.2

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 );
	}
}