PHP 8.2.31
Preview: ProductDataUtils.php Size: 455 B
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/woocommerce/src/Blocks/Utils/ProductDataUtils.php

<?php
declare(strict_types=1);
namespace Automattic\WooCommerce\Blocks\Utils;

/**
 * Utility class to get product data consumable by the blocks.
 *
 * @internal
 */
class ProductDataUtils {
	/**
	 * Get the product data.
	 *
	 * @param \WC_Product $product Product object.
	 * @return array The product data.
	 */
	public static function get_product_data( \WC_Product $product ) {
		return array(
			'price_html' => $product->get_price_html(),
		);
	}
}

Directory Contents

Dirs: 0 × Files: 11

Name Size Perms Modified Actions
6.89 KB lrw-r--r-- 2024-07-30 19:31:16
Edit Download
6.86 KB lrw-r--r-- 2026-03-30 17:12:24
Edit Download
2.08 KB lrw-r--r-- 2023-12-27 00:45:02
Edit Download
30.09 KB lrw-r--r-- 2026-05-05 14:26:50
Edit Download
17.33 KB lrw-r--r-- 2026-05-05 14:26:50
Edit Download
3.51 KB lrw-r--r-- 2024-11-14 01:17:00
Edit Download
1.26 KB lrw-r--r-- 2025-07-29 12:34:58
Edit Download
455 B lrw-r--r-- 2025-06-23 19:46:28
Edit Download
5.75 KB lrw-r--r-- 2026-03-30 17:12:24
Edit Download
23.12 KB lrw-r--r-- 2025-05-12 21:07:28
Edit Download
1.21 KB lrw-r--r-- 2023-12-27 00:45:02
Edit Download

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