Automattic\WooCommerce\Internal\EmailEditor

EmailApiController::get_default_content_schemapublicWC 1.0

Get the schema for the default content endpoint response.

Method of the class: EmailApiController{}

No Hooks.

Returns

Array.

Usage

$EmailApiController = new EmailApiController();
$EmailApiController->get_default_content_schema(): array;

EmailApiController::get_default_content_schema() code WC 10.8.1

public function get_default_content_schema(): array {
	return array(
		'$schema'    => 'http://json-schema.org/draft-04/schema#',
		'title'      => 'woo_email_default_content',
		'type'       => 'object',
		'properties' => array(
			'content' => array(
				'description' => __( 'The default block content for the email.', 'woocommerce' ),
				'type'        => 'string',
				'readonly'    => true,
			),
		),
	);
}