WC_Structured_Data::output_email_structured_data()publicWC 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.


null. Nothing.


$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.
Send to admin (default: false).
Default: false
Plain text email (default: false).
Default: false

Code of WC_Structured_Data::output_email_structured_data() WC 6.7.0

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