# Who can do what

Source: https://uglydev.com/docs/hooks-and-filters/hooks-and-filters-who-can-do-what/
Updated: 19 November 2026

## `ugly_fields_capability`

**Filter.** The capability needed to open UglyFields and build groups, blocks and options pages. The default is the one chosen in **Settings → General**.

```php
add_filter( 'ugly_fields_capability', fn () => 'manage_options' );
```

## `ugly_options_capability`

**Filter.** The capability needed to use options pages, unless a page has its own rule.

```php
add_filter( 'ugly_options_capability', fn () => 'edit_others_pages' );
```
