Automattic\WooCommerce\Admin\Features\Blueprint
RestApi::get_process_response_schema()
Get the schema for the process endpoint.
Метод класса: RestApi{}
Хуков нет.
Возвращает
Массив
.
Использование
$RestApi = new RestApi(); $RestApi->get_process_response_schema();
Код RestApi::get_process_response_schema() RestApi::get process response schema WC 9.7.1
public function get_process_response_schema() { $schema = array( '$schema' => 'http://json-schema.org/draft-04/schema#', 'title' => 'process', 'type' => 'object', 'properties' => array( 'processed' => array( 'type' => 'boolean', ), 'message' => array( 'type' => 'string', ), 'data' => array( 'type' => 'object', 'properties' => array( 'redirect' => array( 'type' => 'string', ), 'result' => array( 'type' => 'array', ), ), ), ), ); return $schema; }