Automattic\WooCommerce\Internal\Admin\Emails
EmailListingRestController::get_schema_with_message
Get the schema for the POST recreate-email-post and save-transient requests.
Method of the class: EmailListingRestController{}
No Hooks.
Returns
Array[].
Usage
// private - for code of main (parent) class only $result = $this->get_schema_with_message();
EmailListingRestController::get_schema_with_message() EmailListingRestController::get schema with message code WC 10.3.3
private function get_schema_with_message() {
return array(
'$schema' => 'http://json-schema.org/draft-04/schema#',
'title' => 'email-listing-with-message',
'type' => 'object',
'properties' => array(
'message' => array(
'description' => __( 'A message indicating that the action completed successfully.', 'woocommerce' ),
'type' => 'string',
'context' => array( 'view', 'edit' ),
'readonly' => true,
),
'post_id' => array(
'description' => __( 'The post ID of the generated email post.', 'woocommerce' ),
'type' => 'string',
'context' => array( 'view', 'edit' ),
'readonly' => true,
),
),
);
}