WordPress at a glance
function is not described

woocommerce_get_product_schema() WC 1.0

Deprecated from version 3.0.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

No Hooks.

Return

String. Nothing.

Usage

woocommerce_get_product_schema();

Notes

  • See: WC_Structured_Data class

Changelog

Deprecated 3.0.0

Code of woocommerce_get_product_schema() WC 5.3.0

<?php
function woocommerce_get_product_schema() {
	wc_deprecated_function( 'woocommerce_get_product_schema', '3.0' );

	global $product;

	$schema = "Product";

	// Downloadable product schema handling
	if ( $product->is_downloadable() ) {
		switch ( $product->download_type ) {
			case 'application' :
				$schema = "SoftwareApplication";
				break;
			case 'music' :
				$schema = "MusicAlbum";
				break;
			default :
				$schema = "Product";
				break;
		}
	}

	return 'http://schema.org/' . $schema;
}