WordPress at Your Fingertips
function is not described

WC_Structured_Data::output_email_structured_data() public WC 1.0

Makes sure email structured data only outputs on non-plain text versions.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Structured_Data = new WC_Structured_Data();
$WC_Structured_Data->output_email_structured_data( $order, $sent_to_admin, $plain_text );
$order(WP_Order) (required)
Order data.
$sent_to_admin(true|false)
Send to admin (default: false).
Default: false
$plain_text(true|false)
Plain text email (default: false).
Default: false

Code of WC_Structured_Data::output_email_structured_data() WC 5.8.0

public function output_email_structured_data( $order, $sent_to_admin = false, $plain_text = false ) {
	if ( $plain_text ) {
		return;
	}
	echo '<div style="display: none; font-size: 0; max-height: 0; line-height: 0; padding: 0; mso-hide: all;">';
	$this->output_structured_data();
	echo '</div>';
}