Automattic\WooCommerce\Internal\EmailEditor\EmailTemplates

TemplateApiController::get_template_data_schemapublicWC 1.0

Get the schema for the template data.

Method of the class: TemplateApiController{}

No Hooks.

Returns

Array.

Usage

$TemplateApiController = new TemplateApiController();
$TemplateApiController->get_template_data_schema(): array;

TemplateApiController::get_template_data_schema() code WC 10.3.6

public function get_template_data_schema(): array {
	return Builder::object(
		array(
			'sender_settings' => Builder::object(
				array(
					'preheader'   => Builder::string(),
					'preview_url' => Builder::string(),
				)
			),
		)
	)->to_array();
}