WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\StoreApi\Schemas

ErrorSchema::get_properties() public WC 1.0

Product schema properties.

{} It's a method of the class: ErrorSchema{}

No Hooks.

Return

Array.

Usage

$ErrorSchema = new ErrorSchema();
$ErrorSchema->get_properties();

Code of ErrorSchema::get_properties() WC 5.8.0

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,
		],
	];
}