Automattic\WooCommerce\Internal\EmailEditor
EmailApiController::get_default_content_schema
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() 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,
),
),
);
}