WP_REST_View_Config_Controller::get_column_style_schema
Returns the schema for the ColumnStyle type.
Метод класса: WP_REST_View_Config_Controller{}
Хуков нет.
Возвращает
array. Schema for a column style object.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_column_style_schema();
Список изменений
| С версии 7.1.0 | Введена. |
Код WP_REST_View_Config_Controller::get_column_style_schema() WP REST View Config Controller::get column style schema WP 7.1.2
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' ),
),
),
);
}