Automattic\WooCommerce\Internal\EmailEditor
EmailApiController::get_email_data_schema
Get the schema for the WooCommerce email post data.
Метод класса: EmailApiController{}
Хуков нет.
Возвращает
array.
Использование
$EmailApiController = new EmailApiController(); $EmailApiController->get_email_data_schema(): array;
Код EmailApiController::get_email_data_schema() EmailApiController::get email data schema WC 11.2.2
public function get_email_data_schema(): array {
return Builder::object(
array(
'subject' => Builder::string()->nullable(),
'subject_full' => Builder::string()->nullable(), // For customer_refunded_order email type because it has two different subjects.
'subject_partial' => Builder::string()->nullable(),
'preheader' => Builder::string()->nullable(),
'default_subject' => Builder::string()->nullable(),
'email_type' => Builder::string()->nullable(),
'recipient' => Builder::string()->nullable(),
'cc' => Builder::string()->nullable(),
'bcc' => Builder::string()->nullable(),
)
)->to_array();
}