> For the complete documentation index, see [llms.txt](https://whoisandywhite.gitbook.io/porterwp/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://whoisandywhite.gitbook.io/porterwp/developer-api/hooks/porter_acf_option_defaults.md). Agents can also search and read this documentation through its [MCP server](https://whoisandywhite.gitbook.io/porterwp/~gitbook/mcp).

# porter\_acf\_option\_defaults

Filters the defaults merged into every options page defined by `acf.json`.

PorterWP evaluates this filter during plugin bootstrap, before a normal theme or `porter/inc/` file loads. Register it from an MU plugin or another plugin guaranteed to load before PorterWP. For theme-owned changes, set `capability`, `icon_url`, or `redirect` on each page in `acf.json` instead.

```php
add_filter( 'porter_acf_option_defaults', function ( array $defaults ) : array {
    $defaults['capability'] = 'manage_options';
    $defaults['icon_url']   = 'dashicons-admin-generic';
    return $defaults;
} );
```

The defaults are `capability => edit_theme_options`, `icon_url => dashicons-smiley`, and `redirect => false`. Values on an individual configured page take precedence. The resulting values are used only when the `acf_add_options_page()` API is available.
