WordPress at a glance
function is not described

WC_Structured_Data::get_data_type_for_page() protected WC 1.0

Get data types for pages.

{} It's a method of the class: WC_Structured_Data{}

Return

Array. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_data_type_for_page();

Code of WC_Structured_Data::get_data_type_for_page() WC 5.3.0

<?php
protected function get_data_type_for_page() {
	$types   = array();
	$types[] = is_shop() || is_product_category() || is_product() ? 'product' : '';
	$types[] = is_shop() && is_front_page() ? 'website' : '';
	$types[] = is_product() ? 'review' : '';
	$types[] = 'breadcrumblist';
	$types[] = 'order';

	return array_filter( apply_filters( 'woocommerce_structured_data_type_for_page', $types ) );
}