Automattic\WooCommerce\Internal\Admin\EmailPreview
EmailPreviewRestController::get_schema_with_message()
Get the schema for the POST send-preview and save-transient requests.
Метод класса: EmailPreviewRestController{}
Хуков нет.
Возвращает
Массив[]
.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_schema_with_message();
Код EmailPreviewRestController::get_schema_with_message() EmailPreviewRestController::get schema with message WC 9.6.1
private function get_schema_with_message() { return array( '$schema' => 'http://json-schema.org/draft-04/schema#', 'title' => 'email-preview-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, ), ), ); }