Warning: This method has been deprecated. Use WC_Structured_Data::generate_order_data() instead.

WC_Emails::order_schema_markup( WC_Order $order, bool $sent_to_admin = false, bool $plain_text = false )

Adds Schema.org markup for order in JSON-LD format.


Description Description

See also See also


Top ↑

Parameters Parameters

$order

(Required) Order instance.

$sent_to_admin

(Optional) If should sent to admin.

Default value: false

$plain_text

(Optional) If is plain text email.

Default value: false


Top ↑

Source Source

File: includes/class-wc-emails.php

	public function order_schema_markup( $order, $sent_to_admin = false, $plain_text = false ) {
		wc_deprecated_function( 'WC_Emails::order_schema_markup', '3.0', 'WC_Structured_Data::generate_order_data' );

		WC()->structured_data->generate_order_data( $order, $sent_to_admin, $plain_text );
		WC()->structured_data->output_structured_data();
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 This method has been deprecated. Use WC_Structured_Data::generate_order_data() instead.
2.6.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.