Automattic\WooCommerce\Internal\EmailEditor
EmailApiController::get_undo_schema
Get the schema for the undo endpoint response.
Method of the class: EmailApiController{}
No Hooks.
Returns
Array.
Usage
$EmailApiController = new EmailApiController(); $EmailApiController->get_undo_schema(): array;
EmailApiController::get_undo_schema() EmailApiController::get undo schema code WC 10.9.1
public function get_undo_schema(): array {
return array(
'$schema' => 'http://json-schema.org/draft-04/schema#',
'title' => 'woo_email_undo',
'type' => 'object',
'properties' => array(
'restored_content' => array(
'description' => __( 'The pre-apply post content that was restored.', 'woocommerce' ),
'type' => 'string',
'readonly' => true,
),
'status' => array(
'description' => __( 'The post-undo status (always `restored` on success).', 'woocommerce' ),
'type' => 'string',
'readonly' => true,
),
),
);
}