Automattic\WooCommerce\StoreApi\Schemas\V1
ErrorSchema::get_properties
Product schema properties.
Method of the class: ErrorSchema{}
No Hooks.
Returns
Array.
Usage
$ErrorSchema = new ErrorSchema(); $ErrorSchema->get_properties();
ErrorSchema::get_properties() ErrorSchema::get properties code WC 10.6.2
public function get_properties() {
return [
'code' => [
'description' => __( 'Error code', 'woocommerce' ),
'type' => 'string',
'context' => [ 'view', 'edit' ],
'readonly' => true,
],
'message' => [
'description' => __( 'Error message', 'woocommerce' ),
'type' => 'string',
'context' => [ 'view', 'edit' ],
'readonly' => true,
],
];
}