WP_REST_View_Config_Controller::get_column_style_schema(): array

In this article

Returns the schema for the ColumnStyle type.

Return

array Schema for a column style object.

Source

protected function get_column_style_schema() {
	return array(
		'type'       => 'object',
		'properties' => array(
			'width'    => array(
				'type' => array( 'string', 'number' ),
			),
			'maxWidth' => array(
				'type' => array( 'string', 'number' ),
			),
			'minWidth' => array(
				'type' => array( 'string', 'number' ),
			),
			'align'    => array(
				'type' => 'string',
				'enum' => array( 'start', 'center', 'end' ),
			),
		),
	);
}

Changelog

VersionDescription
7.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.