Title: WP_REST_View_Config_Controller::get_column_style_schema
Published: August 20, 2026

---

# WP_REST_View_Config_Controller::get_column_style_schema(): array

## In this article

 * [Return](https://developer.wordpress.org/reference/classes/wp_rest_view_config_controller/get_column_style_schema/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/classes/wp_rest_view_config_controller/get_column_style_schema/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/wp_rest_view_config_controller/get_column_style_schema/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_rest_view_config_controller/get_column_style_schema/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_rest_view_config_controller/get_column_style_schema/?output_format=md#wp--skip-link--target)

Returns the schema for the ColumnStyle type.

## 󠀁[Return](https://developer.wordpress.org/reference/classes/wp_rest_view_config_controller/get_column_style_schema/?output_format=md#return)󠁿

 array Schema for a column style object.

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_rest_view_config_controller/get_column_style_schema/?output_format=md#source)󠁿

    ```php
    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' ),
    			),
    		),
    	);
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/rest-api/endpoints/class-wp-rest-view-config-controller.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-includes/rest-api/endpoints/class-wp-rest-view-config-controller.php#L506)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/rest-api/endpoints/class-wp-rest-view-config-controller.php#L506-L525)

## 󠀁[Related](https://developer.wordpress.org/reference/classes/wp_rest_view_config_controller/get_column_style_schema/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_REST_View_Config_Controller::get_table_layout_schema()](https://developer.wordpress.org/reference/classes/wp_rest_view_config_controller/get_table_layout_schema/)`wp-includes/rest-api/endpoints/class-wp-rest-view-config-controller.php` |

Returns the layout schema for table-type views (ViewTable, ViewPickerTable).

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wp_rest_view_config_controller/get_column_style_schema/?output_format=md#changelog)󠁿

| Version | Description | 
| [7.1.0](https://developer.wordpress.org/reference/since/7.1.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_rest_view_config_controller%2Fget_column_style_schema%2F)
before being able to contribute a note or feedback.