> For the complete documentation index, see [llms.txt](https://docs.hivepress.io/developer-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hivepress.io/developer-docs/framework/models/customizing-models.md).

# Customizing models

You can customize any of the existing models using [hooks](https://hivepress.github.io/hook-reference/). For example, the code below changes the maximum allowed listing title length and makes the description optional:

```php
add_filter(
    'hivepress/v1/models/listing',
    function( $model ) {
        $model['fields']['title']['max_length'] = 123;
        $model['fields']['description']['required'] = false;

        return $model;        
    }
);
```

Similarly, you can customize any model in HivePress or its extensions.
